mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 18:52:15 +00:00
Added code-comments.
This commit is contained in:
@@ -110,6 +110,7 @@ abstract class Route implements IRoute
|
|||||||
|
|
||||||
$parameters = [];
|
$parameters = [];
|
||||||
|
|
||||||
|
// Ensures that hostnames/domains will work with parameters
|
||||||
$url = '/' . ltrim($url, '/');
|
$url = '/' . ltrim($url, '/');
|
||||||
|
|
||||||
if (preg_match_all('/' . $regex . '/', $route, $parameters)) {
|
if (preg_match_all('/' . $regex . '/', $route, $parameters)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user