iziz / libPhoneNumber-iOS

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

NBAsYouTypeFormatter format US number incorrectly #401

Open subheesh2 opened 6 months ago

subheesh2 commented 6 months ago

As per https://rawgit.com/googlei18n/libphonenumber/master/javascript/i18n/phonenumbers/demo-compiled.html, NBAsYouTypeFormatter with US as default region should format the number 17327321233 to 1 (732) 732-1233 as we type. But it format the value to 1 732-732-1233 as we type, which is wrong.

Can you please look into this?

Thanks!