ahwelp 5 лет назад
Родитель
Сommit
2c1d01abea
1 измененных файлов с 1 добавлено и 1 удалено
  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 = ltrim($this->_regex, '\/');
-        $this->_regex = "/\/" . $this->_regex . "$/";
+        $this->_regex = "/^\/" . $this->_regex . "$/";
     }
     }
 
 
     function createIndexes() {
     function createIndexes() {