From e8f19fbeae90cd1e961fa9824a18134a7692eab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Mon, 28 Nov 2016 05:24:12 +0100 Subject: [PATCH] Simplified `PARAMETERS_REGEX_MATCH` in Route class. --- src/Pecee/SimpleRouter/Route/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/SimpleRouter/Route/Route.php b/src/Pecee/SimpleRouter/Route/Route.php index 978a1f5..59987e9 100644 --- a/src/Pecee/SimpleRouter/Route/Route.php +++ b/src/Pecee/SimpleRouter/Route/Route.php @@ -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';