Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canada phone numbers starting with area code (672) are not identified as FIXED_LINE_OR_MOBILE #126

Open
oabhishek opened this issue Jul 30, 2024 · 0 comments

Comments

@oabhishek
Copy link

oabhishek commented Jul 30, 2024

We are using this library to validate any phone number against country code like this -
i, err := libphonenumber.Parse(input, countryCode) if err != nil { return nil, err } p.i = i p.region = libphonenumber.GetRegionCodeForNumber(i)
when we tried a valid Canadian phone number +16728902474 and countryCode='CA' it returns empty region

After debugging we found that it does not return the number as FIXED_LINE_OR_MOBILE on github.com/ttacon/libphonenumber/phonenumberutil.go line#2087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant