From 976348c6b579f7761cbc769309e068659e545db2 Mon Sep 17 00:00:00 2001 From: RunnerLee Date: Wed, 16 Aug 2017 17:34:42 +0800 Subject: [PATCH] Update Validator.php --- src/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator.php b/src/Validator.php index 530b6a3..9f8cf9c 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -538,7 +538,7 @@ protected function validateRange($field, $value, array $parameters) */ protected function validateRegex($field, $value, array $parameters) { - return (bool) preg_match("#{$parameters[0]}#", $value); + return (bool) preg_match($parameters[0], $value); } /**