Closed DanilLiptuga closed 4 months ago
isValidNumber
respects the validationNumberType
option, which is set to "MOBILE" by default, meaning isValidNumber
will only return true
for mobile numbers. See the readme on validationNumberType
for how to change this behaviour.
Plugin version
v23.0.8
Steps to reproduce
Expected behavior
According to https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom UK, numbers can be 7 or 9 digits long. But the plugin validation always expects it to be 10 digits long.
Actual behavior
The plugin validation always expects the UK phone number to be 10 digits long.