catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.76k stars 218 forks source link

country code duplication for some countries #437

Open majdkhasib opened 1 year ago

majdkhasib commented 1 year ago

To reproduce:

  1. Open this demo
  2. Type TT in country
  3. type 868 followed by 654
  4. Type 6 and see how it gets a duplicate country code

Do you suggest a workaround to prevent this issue?

majdkhasib commented 1 year ago

@catamphetamine any updates?

catamphetamine commented 1 year ago

See https://github.com/catamphetamine/libphonenumber-js#bug-reporting