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)