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
Possible solution
I would suggest using the google-libphonenumber library as dependency, as it seems to be very popular and very accurate for phone number validation.
Describe the bug
The
isMobilePhone
validator doesn't work for (at least some) Lebanese phone numbers.Examples
With
isMobilePhone('any', { strictMode: true })
, this phone number:+96170072968
(which is the first example on https://en.wikipedia.org/wiki/Telephone_numbers_in_Lebanon) appears as invalid, but it's actually valid.Possible solution
I would suggest using the google-libphonenumber library as dependency, as it seems to be very popular and very accurate for phone number validation.
Additional context
Validator.js version: 13.1.1
Node.js version: 14.8.0
OS platform: macOS 10.15.6
The text was updated successfully, but these errors were encountered: