Commit 6ed4adf6 authored by Taylor Otwell's avatar Taylor Otwell

added parens to router wildcard character list.

parent e21d914c
......@@ -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\.\-_%]+)',
);
/**
......
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