laravel/framework — pull request #529 by timaelliott (2013-03-07 20:15:31+00:00)
Title: Fix Validator->parseRule to allow regex with commas

Currently, Validator->parseRule will split a regex parameter on commas, resulting in breaking the regex pattern.

* This change resolves this by only calling str_getcsv() when the $rule is not regex.
* It also simplifies the splitting of $rule instead of checking is_numeric() below, since we've already verified that a colon is present.