Skip to content

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

Description

@oabhishek

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions