ahwelp 5 rokov pred
rodič
commit
2c1d01abea
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/Routes/Route.php

+ 1 - 1
src/Routes/Route.php

@@ -195,7 +195,7 @@ class Route {
             }
         }
         $this->_regex = ltrim($this->_regex, '\/');
-        $this->_regex = "/\/" . $this->_regex . "$/";
+        $this->_regex = "/^\/" . $this->_regex . "$/";
     }
 
     function createIndexes() {