Skip to content

Commit 0c5280f

Browse files
committed
Route: removed check for parameter name
1 parent b9d567a commit 0c5280f

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/Application/Routers/Route.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,6 @@ private function setMask($mask, array $metadata)
542542
continue;
543543
}
544544

545-
// check name (limitation by regexp)
546-
if (preg_match('#[^a-z0-9_-]#i', $name)) {
547-
throw new Nette\InvalidArgumentException("Parameter name must be alphanumeric string due to limitations of PCRE, '$name' given.");
548-
}
549-
550545
// pattern, condition & metadata
551546
if ($class !== '') {
552547
if (!isset(static::$styles[$class])) {

0 commit comments

Comments
 (0)