segment pattern to match a single segment, also matches UTF-8 segments.
This commit is contained in:
parent
9fae4dc8d7
commit
9df9a5df04
|
@ -76,6 +76,7 @@ class Router {
|
|||
public static $patterns = array(
|
||||
'(:num)' => '([0-9]+)',
|
||||
'(:any)' => '([a-zA-Z0-9\.\-_%=]+)',
|
||||
'(:segment)' => '([^/]+)',
|
||||
'(:all)' => '(.*)',
|
||||
);
|
||||
|
||||
|
@ -87,6 +88,7 @@ class Router {
|
|||
public static $optional = array(
|
||||
'/(:num?)' => '(?:/([0-9]+)',
|
||||
'/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%=]+)',
|
||||
'/(:segment?)' => '(?:/([^/]+)',
|
||||
'/(:all?)' => '(?:/(.*)',
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue