Permalink
Browse files

Merge pull request #50 from fripas/patch-1

Accepts `$Params` like `$foo_bar` that contain underscores
  • Loading branch information...
arzynik committed Feb 14, 2018
2 parents 053147c + 0478a7a commit 9d46d31dd6d29664a0dd5f85bd6a96d8b21e24af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Route.php
@@ -69,7 +69,7 @@ public function match($page) {
}
}
$r = preg_replace('/:[a-z]+/i','.*',$this->_route);
$r = preg_replace('/:[a-z_]+/i','.*',$this->_route);
$r = preg_replace('/\//','\/',$r);
if (preg_match('/^'.$r.'$/'.($this->_caseSensitive ? '' : 'i'),$page)) {

0 comments on commit 9d46d31

Please sign in to comment.