Allow whitespaces in the IsNotPhoneNumber validation rule

This commit is contained in:
Timothée Jaussoin 2022-03-24 17:55:57 +01:00
parent e6ead8923c
commit 5e377a2b84
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ class IsNotPhoneNumber implements Rule
{
public function passes($attribute, $value): bool
{
return (Validator::not(Validator::phone())->not(Validator::startsWith('+'))->noWhitespace()->validate($value));
return (Validator::not(Validator::phone())->not(Validator::startsWith('+'))->validate($value));
}
public function message()

View file

@ -8,7 +8,7 @@
#%define _datadir %{_datarootdir}
#%define _docdir %{_datadir}/doc
%define build_number 134
%define build_number 135
%define var_dir /var/opt/belledonne-communications
%define opt_dir /opt/belledonne-communications/share/flexisip-account-manager