Validation icon indicating copy to clipboard operation
Validation copied to clipboard

Phone validator does not allow area codes with more than 3 digits

Open glewe opened this issue 5 years ago • 3 comments

I ran into a shortcoming of the phone validator. Area codes with more than 3 digits are considered false. In Europe though there are area codes like that, e.g. +49 (6105) 1234 5678

glewe avatar Mar 03 '19 14:03 glewe

Currently the validator assumes that the max area code is 3 digits long. Additionally, I think that the whole validator needs a refactoring as it will fail for some specific patterns too.

sunchayn avatar Mar 19 '19 18:03 sunchayn

start with country code. Country code specifies area code and number format.

maxw3st avatar Dec 25 '19 05:12 maxw3st

same problem here (AT)

These are not valid, though they are ;) +43 3612 nnnnnnnn +43 3612 nnnn nnnn when removing the spaces they are going through: +43 3612nnnnnnnn +433612nnnnnnnn

mbretter avatar Jan 22 '21 11:01 mbretter

This is fixed on 2.3. It will be released soon! 🐼

alganet avatar Feb 19 '23 00:02 alganet

Version 2.3 was released about a week ago.

This issue should be fixed now! 🐼

henriquemoody avatar Feb 04 '24 15:02 henriquemoody