Regex fixing

This commit is contained in:
ahwelp
2020-06-12 11:21:16 +00:00
parent cc76a1799b
commit 2c1d01abea
+1 -1
View File
@@ -195,7 +195,7 @@ class Route {
}
}
$this->_regex = ltrim($this->_regex, '\/');
$this->_regex = "/\/" . $this->_regex . "$/";
$this->_regex = "/^\/" . $this->_regex . "$/";
}
function createIndexes() {