added parens to router wildcard character list.
This commit is contained in:
@@ -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\.\-_%]+)',
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user