diff --git a/src/Utils.php b/src/Utils.php index b48af39..7eda121 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -175,7 +175,7 @@ class Utils $validators[] = [ 'type' => $rule, 'validate' => function () use ($data, $attribute) { - return \preg_match('/[^\w]/', $data[$attribute]); + return \preg_match('/[^a-zA-Z0-9]/', $data[$attribute]); }, // phpcs:ignore Generic.Files.LineLength.TooLong 'error' => self::translate($attribute) . ' doit contenir au moins un caractère spécial comme une virgule par exemple'