Browse Source

added parens to router wildcard character list.

Taylor Otwell 13 years ago
parent
commit
6ed4adf6c4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/routing/router.php

+ 2 - 2
laravel/routing/router.php

@@ -23,7 +23,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\.\-_%]+)',
 	);
 	);
 
 
 	/**
 	/**
@@ -33,7 +33,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\.\-_%]+)',
 	);
 	);
 
 
 	/**
 	/**