This commit is contained in:
parent
7647c3fcba
commit
9d28938d55
|
@ -76,6 +76,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\.\-_%=]+)',
|
||||||
|
'(:segment)' => '([^/]+)',
|
||||||
'(:all)' => '(.*)',
|
'(:all)' => '(.*)',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -87,6 +88,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\.\-_%=]+)',
|
||||||
|
'/(:segment?)' => '(?:/([^/]+)',
|
||||||
'/(:all?)' => '(?:/(.*)',
|
'/(:all?)' => '(?:/(.*)',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue