Commit 1f93039b authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #873 from dlpetrie/master

Adding support for '=', in (:any) and (:any?) route patterns
parents 4d7d67dd f640cd42
......@@ -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?)' => '(?:/(.*)',
);
......
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