Commit f640cd42 by Daniel Petrie

adding in '=' to regex for (:any) / (:any?) calls.

parent 3a62036a
...@@ -75,7 +75,7 @@ class Router { ...@@ -75,7 +75,7 @@ class Router {
*/ */
public static $patterns = array( public static $patterns = array(
'(:num)' => '([0-9]+)', '(:num)' => '([0-9]+)',
'(:any)' => '([a-zA-Z0-9\.\-_%]+)', '(:any)' => '([a-zA-Z0-9\.\-_%=]+)',
'(:all)' => '(.*)', '(:all)' => '(.*)',
); );
...@@ -86,7 +86,7 @@ class Router { ...@@ -86,7 +86,7 @@ class Router {
*/ */
public static $optional = array( public static $optional = array(
'/(:num?)' => '(?:/([0-9]+)', '/(:num?)' => '(?:/([0-9]+)',
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%]+)', '/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%=]+)',
'/(:all?)' => '(?:/(.*)', '/(:all?)' => '(?:/(.*)',
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment