Skip to content

Commit

Permalink
Update Validator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RunnerLee committed Aug 16, 2017
1 parent 153c457 commit 976348c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 976348c

Please sign in to comment.