mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 18:12:15 +00:00
[TASK] Fixed regex causing optional parameters to sometimes catch required
parameters value.
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