You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When passing one space to isMobilePhone, the result is false, which is ok.
When passing several spaces, the result is true, which is probably a bug.
See screenshot attached :)
The text was updated successfully, but these errors were encountered:
In the current version 11.0.1, I do not see the error where spaces is a valid mobile phone number.
For instance:
varvalidator=require("validator");varisValid=validator.isMobilePhone(' ');// The above situation returns false
The only thing that I can extend this conversation is, will we allow valid number with whitespaces to be valid? For example
varvalidator=require("validator");varisValid=validator.isMobilePhone(' 0702346787 ');// This returns false due to whitespaces. But, inside is a valid mobilephone
Hello,
When passing one space to isMobilePhone, the result is false, which is ok.
When passing several spaces, the result is true, which is probably a bug.
See screenshot attached :)
The text was updated successfully, but these errors were encountered: