diff --git a/src/Route.php b/src/Route.php index c62dff7..72b692a 100644 --- a/src/Route.php +++ b/src/Route.php @@ -28,7 +28,7 @@ public function __construct($pathPattern, $method, $className){ $vars = $matches[0]; $strtr = array(); foreach($vars as $var){ - $strtr[$var] = '[a-zA-Z0-9]+'; + $strtr[$var] = '[a-zA-Z0-9._]+'; } $this->vars = $vars; $this->regexp = strtr($pathPattern, $strtr);