added parens to router wildcard character list.
This commit is contained in:
parent
e21d914c1c
commit
6ed4adf6c4
|
@ -23,7 +23,7 @@ class Router {
|
|||
*/
|
||||
public static $patterns = array(
|
||||
'(:num)' => '([0-9]+)',
|
||||
'(:any)' => '([a-zA-Z0-9\.\-_]+)',
|
||||
'(:any)' => '([a-zA-Z0-9\.\-_%]+)',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ class Router {
|
|||
*/
|
||||
public static $optional = array(
|
||||
'/(:num?)' => '(?:/([0-9]+)',
|
||||
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_]+)',
|
||||
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%]+)',
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue