angular-input-masks icon indicating copy to clipboard operation
angular-input-masks copied to clipboard

More than 2 digits of country calling code

Open polaroi8d opened this issue 8 years ago • 3 comments

First of all, thanks for the hard work, the validation mask is working almost perfectly.

I have an issue, when I'm using the code where the country calling code 2 is 100% perfect. But if I want to input 3 digits of prefix ie.: Portugal | 351 / Slovakia | 421 / Slovenia | 386, tha mask always add the last digit to the real number.

What can I do with this? I didn't find any solution mentioned in the issues, if there is something so sorry for oppened this issue.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

polaroi8d avatar Oct 10 '17 12:10 polaroi8d

^ @assisrafael

polaroi8d avatar Oct 11 '17 12:10 polaroi8d

There is not an international phone mask available in this library. You can check the code for the localized versions (e.g. uiBrPhoneNumberMask) and implement a mask in the global package that handles all global formats (could be named uiPhoneNumberMask).

assisrafael avatar Oct 11 '17 15:10 assisrafael

Sad to hear about this. Okey, thanks for your help.

polaroi8d avatar Oct 11 '17 18:10 polaroi8d