Skip to content

Commit

Permalink
[5.6] Fix typo of missing underscore in not_regexp rule's name (#24297)
Browse files Browse the repository at this point in the history
* Fix typo of missing underscore in not_regexp rule

* Add 'notregex' to condition as well for backward-compatibility
  • Loading branch information
KisGabo authored and taylorotwell committed May 24, 2018
1 parent e501d88 commit de7455a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/ValidationRuleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ protected static function parseParameters($rule, $parameter)
{
$rule = strtolower($rule);

if ($rule === 'regex' || $rule === 'notregex') {
if ($rule === 'regex' || $rule === 'not_regex' || $rule === 'notregex') {
return [$parameter];
}

Expand Down

0 comments on commit de7455a

Please sign in to comment.