From 6ed4adf6c4cefc34d2050a39cf64ace3557108df Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 08:45:51 -0600 Subject: [PATCH] added parens to router wildcard character list. --- laravel/routing/router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/routing/router.php b/laravel/routing/router.php index 53da4751..c5112edf 100644 --- a/laravel/routing/router.php +++ b/laravel/routing/router.php @@ -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\.\-_%]+)', ); /**