diff --git a/src/Form/Type/PhoneType.php b/src/Form/Type/PhoneType.php index 0f4d84f..853e98c 100644 --- a/src/Form/Type/PhoneType.php +++ b/src/Form/Type/PhoneType.php @@ -13,7 +13,7 @@ class PhoneType extends AbstractType { $resolver->setDefaults([ 'constraints' => [ - new Regex('/^[0-9]*$/', 'form_constraint_digit_only') + new Regex('/^[0-9 ]*$/', 'form_constraint_digit_only') ], 'attr' => ['placeholder' => 'form_placeholder_phone'], 'help' => 'form_help_phone',