nyaruka / phonenumbers

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

German Phone Number E164 Format #181

Closed cobbinma closed 2 months ago

cobbinma commented 2 months ago

Formatting a German phone number using phonenumbers.E164 seems to insert an extra country code

    num, _ := phonenumbers.Parse("4915150805059", "DE")

    phonenumbers.Format(num, phonenumbers.E164)

Expected: +4915150805059 Actual: +494915150805059

This works with a GB number such as 447911123456

cobbinma commented 2 months ago

https://issuetracker.google.com/issues/367304681