diff --git a/src/Application/Routers/Route.php b/src/Application/Routers/Route.php index 9dc0b3a21..e2a96a878 100644 --- a/src/Application/Routers/Route.php +++ b/src/Application/Routers/Route.php @@ -542,11 +542,6 @@ private function setMask($mask, array $metadata) continue; } - // check name (limitation by regexp) - if (preg_match('#[^a-z0-9_-]#i', $name)) { - throw new Nette\InvalidArgumentException("Parameter name must be alphanumeric string due to limitations of PCRE, '$name' given."); - } - // pattern, condition & metadata if ($class !== '') { if (!isset(static::$styles[$class])) {