From f640cd42ad9283db82d7c7339ff1a1e050232dcf Mon Sep 17 00:00:00 2001 From: Daniel Petrie Date: Wed, 27 Jun 2012 11:15:34 -0700 Subject: [PATCH] adding in '=' to regex for (:any) / (:any?) calls. --- 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 a6577b3f..91957551 100644 --- a/laravel/routing/router.php +++ b/laravel/routing/router.php @@ -75,7 +75,7 @@ class Router { */ public static $patterns = array( '(:num)' => '([0-9]+)', - '(:any)' => '([a-zA-Z0-9\.\-_%]+)', + '(:any)' => '([a-zA-Z0-9\.\-_%=]+)', '(:all)' => '(.*)', ); @@ -86,7 +86,7 @@ class Router { */ public static $optional = array( '/(:num?)' => '(?:/([0-9]+)', - '/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%]+)', + '/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%=]+)', '/(:all?)' => '(?:/(.*)', );