iziz / libPhoneNumber-iOS

iOS port from libphonenumber (Google's phone number handling library)
Apache License 2.0
2.35k stars 459 forks source link

`isPossibleNumber(withReason...` returns incorrect case for local number #385

Open adarak opened 1 year ago

adarak commented 1 year ago

Tested this in a fresh project: when you parse a 7 digit number (region US), and then loosely validate with isPossibleNumber(withReason it returns IS_POSSIBLE rather than IS_POSSIBLE_LOCAL_ONLY

This also seems to occur with local numbers in Australia region as well; these are the only two areas I've tested.

This does not occur on the original LibPhoneNumber repo.