react-phone-input-2
react-phone-input-2 copied to clipboard
Germany is incorrect
The formatting of German numbers is basically locationPrefix number
. However, the locationPrefix
can be between 2 to 5 numbers. The bigger the city, the shorter the prefix.
The locationPrefix
can also be replaced through a carrierPrefix
for mobile numbers, or a specialPrefix
for special purpose numbers.
The way it's currently always grouping the first 4 digits, is actually worse than no formatting at all.