Skip to content

Commit

Permalink
Posibility to add or conditions in named parameters [ | ]
Browse files Browse the repository at this point in the history
  • Loading branch information
plugowski committed Feb 22, 2016
1 parent 8f80e9f commit 9fdd779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function preparePattern()
return isset($this->paramRules[$match['name']]) ? '(' . $this->paramRules[$match['name']] . ')' : '([\w-]+)';
}, $this->getUrl());

return sprintf('|^%s$|', $pattern);
return sprintf('~^%s$~', $pattern);
}

/**
Expand Down

0 comments on commit 9fdd779

Please sign in to comment.