|
@@ -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?)' => '(?:/(.*)',
|
|
|
);
|
|
|
|