From 9d28938d5589bbe02a956625f318d852085122c5 Mon Sep 17 00:00:00 2001 From: Mohammad Sadeghi Date: Mon, 24 Sep 2012 16:42:09 +0330 Subject: [PATCH] . --- laravel/routing/router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/routing/router.php b/laravel/routing/router.php index 86c04a16..b2578169 100644 --- a/laravel/routing/router.php +++ b/laravel/routing/router.php @@ -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?)' => '(?:/(.*)', );