daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.04k stars 130 forks source link

Phone number is valid however it contains alphabetic characters #299

Closed Mohab-Kahla-TrianglZ closed 3 months ago

Mohab-Kahla-TrianglZ commented 4 months ago

I guess inserting an alphabetic character should invalidate the phone number, right?

image
daddyz commented 3 months ago

@Mohab-Kahla-TrianglZ there is a configuration option for such cases:

Phonelib.strict_check = true