Open ruellia opened 5 years ago
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.
7104f0e
This could potentially be a similar issue to #63, since isPossible is returning false but isValid is returning true.
isPossible
false
isValid
true
same issue occurring to us
+1
same here +1, got error in US number.
Example case:
returns
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 returningfalse
butisValid
is returningtrue
.