nyaruka / phonenumbers

GoLang port of Google's libphonenumber library
MIT License
1.25k stars 148 forks source link

Incorrect national number result when dealing with certain phone number format input (ID) #116

Closed amakmurr closed 6 months ago

amakmurr commented 2 years ago

In ID there's old phone number that have only 10 digits (in national format excluding country code) .e.g. 0812456789.

It produces different results compared with Google Java Version when the input using this format 62812456789.

image

image

Thanks.

rowanseymour commented 2 years ago

I'm checking Google's Java Demo tho it seems to give the same results as this library https://libphonenumber.appspot.com/phonenumberparser?number=62812345679&country=ID