Skip to content

Commit e2a618f

Browse files
committed
Merge pull request #33 from skipperbent/development
[BUGFIX] Fixed optinal parameters not availible when getting route.
2 parents 750817e + e570047 commit e2a618f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pecee/SimpleRouter/RouterRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class RouterRoute extends RouterEntry {
88

9-
const PARAMETERS_REGEX_MATCH = '{([A-Za-z\-\_]*?)}';
9+
const PARAMETERS_REGEX_MATCH = '{([A-Za-z\-\_]*?\?{0,1})}';
1010

1111
protected $url;
1212

0 commit comments

Comments
 (0)