Skip to content

Commit

Permalink
Route: removed check for parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 5, 2014
1 parent b9d567a commit 0c5280f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Application/Routers/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 0c5280f

Please sign in to comment.