Simplified PARAMETERS_REGEX_MATCH in Route class.

This commit is contained in:
Simon Sessingø
2016-11-28 05:24:12 +01:00
parent 5c89ae2aaf
commit e8f19fbeae

View File

@@ -6,7 +6,7 @@ use Pecee\SimpleRouter\Exceptions\NotFoundHttpException;
abstract class Route implements IRoute
{
const PARAMETERS_REGEX_MATCH = '%s([\w\-\_]*?)(\%s{0,1})%s';
const PARAMETERS_REGEX_MATCH = '%s([\w]+)(\%s?)%s';
const REQUEST_TYPE_GET = 'get';
const REQUEST_TYPE_POST = 'post';