mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 21:22:17 +00:00
Merge pull request #68 from skipperbent/development
[TASK] Fixed regex causing optional parameters to sometimes catch req…
This commit is contained in:
@@ -248,7 +248,7 @@ abstract class RouterEntry {
|
|||||||
return new $name();
|
return new $name();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseParameters($route, $url, $parameterRegex = '[a-z0-9]+?') {
|
protected function parseParameters($route, $url, $parameterRegex = '[a-z0-9]+') {
|
||||||
$parameterNames = array();
|
$parameterNames = array();
|
||||||
$regex = '';
|
$regex = '';
|
||||||
$lastCharacter = '';
|
$lastCharacter = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user