Skip to content

Commit

Permalink
Better route precedence order
Browse files Browse the repository at this point in the history
  • Loading branch information
xfra35 committed Aug 16, 2016
1 parent 85e1060 commit 64277ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ function run() {
// Match specific routes first
$paths=[];
foreach ($keys=array_keys($this->hive['ROUTES']) as $key) {
$path=str_replace('@','*@',$key);
$path=preg_replace('/@\w+/','*@',$key);
if (substr($path,-1)!='*')
$path.='+';
$paths[]=$path;
Expand Down

0 comments on commit 64277ff

Please sign in to comment.