mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 19:12:13 +00:00
Simplified PARAMETERS_REGEX_MATCH in Route class.
This commit is contained in:
@@ -6,7 +6,7 @@ use Pecee\SimpleRouter\Exceptions\NotFoundHttpException;
|
|||||||
|
|
||||||
abstract class Route implements IRoute
|
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_GET = 'get';
|
||||||
const REQUEST_TYPE_POST = 'post';
|
const REQUEST_TYPE_POST = 'post';
|
||||||
|
|||||||
Reference in New Issue
Block a user