Permalink
Browse files

Merge pull request #2749 from philsturgeon/patch-1

Allow , in route wildcards
  • Loading branch information...
taylorotwell committed Nov 19, 2013
2 parents 26124a7 + 98abdc4 commit fdd378bb072d6993be9798aa1772c394e65e5048
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Illuminate/Routing/Route.php
@@ -63,21 +63,21 @@ class Route {
*
* @var string
*/
protected static $wildcard = '(?P<$1>([a-zA-Z0-9\.\-_%=]+))';
protected static $wildcard = '(?P<$1>([a-zA-Z0-9\.\,\-_%=]+))';
/**
* The regular expression for an optional wildcard.
*
* @var string
*/
protected static $optional = '(?:/(?P<$1>([a-zA-Z0-9\.\-_%=]+))';
protected static $optional = '(?:/(?P<$1>([a-zA-Z0-9\.\,\-_%=]+))';
/**
* The regular expression for a leading optional wildcard.
*
* @var string
*/
protected static $leadingOptional = '(\/$|^(?:(?P<$2>([a-zA-Z0-9\.\-_%=]+)))';
protected static $leadingOptional = '(\/$|^(?:(?P<$2>([a-zA-Z0-9\.\,\-_%=]+)))';
/**
* The validators used by the routes.

0 comments on commit fdd378b

Please sign in to comment.