Merge pull request #873 from dlpetrie/master

Adding support for '=', in (:any) and (:any?) route patterns
This commit is contained in:
Taylor Otwell 2012-06-27 20:39:59 -07:00
commit 1f93039ba7
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Router {
*/
public static $patterns = array(
'(:num)' => '([0-9]+)',
'(:any)' => '([a-zA-Z0-9\.\-_%]+)',
'(:any)' => '([a-zA-Z0-9\.\-_%=]+)',
'(:all)' => '(.*)',
);
@ -86,7 +86,7 @@ class Router {
*/
public static $optional = array(
'/(:num?)' => '(?:/([0-9]+)',
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%]+)',
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%=]+)',
'/(:all?)' => '(?:/(.*)',
);