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

Some valid phone numbers returning false when IsPossibleNumber is called #82

Open
ruellia opened this issue Nov 28, 2018 · 5 comments
Open

Comments

@ruellia
Copy link

ruellia commented Nov 28, 2018

Example case:

parsedNumber, err := libphonenumber.Parse("+8201038791365", "")
formattedNumber := libphonenumber.Format(parsedNumber, libphonenumber.E164)
fmt.Printf("formatted number: %s \n", formattedNumber)
fmt.Printf("possible: %v \n", libphonenumber.IsPossibleNumber(number))
fmt.Printf("valid: %v \n", libphonenumber.IsValidNumber(number))

returns

formatted number: +821038791365
possible: false
valid: true

This number should be a possible number according to the Google lib source of truth.

I believe this issue was introduced by #79, as commits prior to hash 7104f0e work as expected.

This could potentially be a similar issue to #63, since isPossible is returning false but isValid is returning true.

@sonic0002
Copy link

same issue occurring to us

@harrycmfan
Copy link

+1

2 similar comments
@Serjip
Copy link

Serjip commented Dec 5, 2018

+1

@sidchan1234
Copy link

+1

@XanderDwyl
Copy link
Contributor

same here +1, got error in US number.

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

6 participants