From 795ba7b90cbf9e1688ff883aef71c29dc8e3da96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartalos=20G=C3=A1bor?= Date: Wed, 23 May 2018 22:44:20 +0200 Subject: [PATCH 1/2] Fix typo of missing underscore in not_regexp rule --- src/Illuminate/Validation/ValidationRuleParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Validation/ValidationRuleParser.php b/src/Illuminate/Validation/ValidationRuleParser.php index 3af36ce8985e..1de745f99ed0 100644 --- a/src/Illuminate/Validation/ValidationRuleParser.php +++ b/src/Illuminate/Validation/ValidationRuleParser.php @@ -250,7 +250,7 @@ protected static function parseParameters($rule, $parameter) { $rule = strtolower($rule); - if ($rule === 'regex' || $rule === 'notregex') { + if ($rule === 'regex' || $rule === 'not_regex') { return [$parameter]; } From c0ad5af29f0a2b965f2279db04dd7477504ea133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartalos=20G=C3=A1bor?= Date: Thu, 24 May 2018 10:09:07 +0200 Subject: [PATCH 2/2] Add 'notregex' to condition as well for backward-compatibility --- src/Illuminate/Validation/ValidationRuleParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Validation/ValidationRuleParser.php b/src/Illuminate/Validation/ValidationRuleParser.php index 1de745f99ed0..7ce0f41a45fd 100644 --- a/src/Illuminate/Validation/ValidationRuleParser.php +++ b/src/Illuminate/Validation/ValidationRuleParser.php @@ -250,7 +250,7 @@ protected static function parseParameters($rule, $parameter) { $rule = strtolower($rule); - if ($rule === 'regex' || $rule === 'not_regex') { + if ($rule === 'regex' || $rule === 'not_regex' || $rule === 'notregex') { return [$parameter]; }