From ece7e35959689bfea99939773cf74c734f4b3e94 Mon Sep 17 00:00:00 2001 From: Skylear Date: Thu, 15 Jul 2021 15:42:16 -0500 Subject: [PATCH] Update uri tokenizing to accept \w and \- --- src/Splashsky/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Splashsky/Router.php b/src/Splashsky/Router.php index 32e55b3..1c235d2 100644 --- a/src/Splashsky/Router.php +++ b/src/Splashsky/Router.php @@ -50,7 +50,7 @@ class Router private static function tokenize(string $uri) { - return preg_replace('/(?:{([A-Za-z]+)})+/', '([\w]+)', $uri); + return preg_replace('/(?:{([\w\-]+)})+/', '([\w\-]+)', $uri); } public static function run(string $basePath = '', bool $multimatch = false)