mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[TASK] Fixed parameter matching regex when using multiple optional parameters.
This commit is contained in:
@@ -51,7 +51,7 @@ class RouterResource extends RouterEntry {
|
||||
|
||||
$route = rtrim($this->url, '/') . '/{id?}/{action?}';
|
||||
|
||||
$parameters = $this->parseParameters($route, $url, '[0-9]*?');
|
||||
$parameters = $this->parseParameters($route, $url);
|
||||
|
||||
if($parameters !== null) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user