Open maakle opened 1 year ago
@maakle can you provide the phone number prefixed +49 and the expected output? I want to be sure we're taking of the same thing. Thanks!
Sure, German mobile phone numbers have either 3 or 4 digits as prefix after the country code. Examples: +49 160 1212123 +49 1577 1212123
They start either with 15, 16 or 17. You can find a detailed list here: https://en.wikipedia.org/wiki/List_of_dialling_codes_in_Germany
Actually only number that start with 15 potentially have 4 digits. See here from the link above:
157
So I guess you need to check if it starts with 157 and then the prefix will be 4. Otherwise it's 3. Does that make sense?
Btw I think also a feature which deactivates the formatting would be cool. In that case no formatting is better than wrong formatting. ;)
Currently it shows phone numbers like this:
It should be
160 1212123
so it wrongly adds 1 digit too much. Is there a way how I can adjust this or custom render it? One solution could also simply be a setting to deactivate the formatting.