diff --git a/evolibs/Form.php b/evolibs/Form.php index 700a9a3..3df9cfe 100644 --- a/evolibs/Form.php +++ b/evolibs/Form.php @@ -426,7 +426,7 @@ class AlphaNumericalTextInputFormField extends FormField { return FALSE; } - if (!preg_match("/^(?!-)(?!_)[[a-zA-Z0-9-_]+(?value)) { + if (!preg_match("/^(?!-)(?!_)[[a-zA-Z0-9-_]*(?value)) { if($set_error) $this->error = 'Seul les caractères a-z A-Z 0-9 sont autorisés (- et _ le sont excepté en début et fin)'; return FALSE; }