Closed ravensborn closed 4 months ago
As you showed yourself libphonenumber is reporting that string to be a valid phone number string - and I'd bet it does so on purpose. Please redirect your issue to that repository or apply additional validators checking the input's format if you don't like it that way
Hello,
Trying to validate a number with symbols appended to the end will pass the validation as a valid number.
Case:
+9647507534867-----++$%^
['required', 'string', 'distinct', 'phone:IQ']
.Demo Application:
Issue also present in demo application.
libphonenumber's demo (This library might filter out the input before checking for the number validity):
isPossibleNumber()
: trueisValidNumber()
: trueisValidNumberForRegion()
: true