Closed impratick closed 2 months ago
The problem is that the number is a FIXED_LINE number and isValidNumber
respects the validationNumberType
option, which is MOBILE by default. If you need to accept other number types, you can change this option to null
. Or alternatively, use isValidNumberPrecise
(demo here), which I checked and it passes for this number.
Yes, I think this will help me. Thanks @jackocnr.
Plugin version
v23.0.4
Steps to reproduce
Germany(+49)
as country code0XXXXXXXXX
or+49XXXXXXXXX
as the phone numberExpected behavior
It should be identified as a valid phone number.
Actual behavior
Being identified as an invalid phone number, however, it is valid. Tested on validation-practical demo
Update: 14.05.2024
You can try any German 7-digit phone number.