mukeshsoni / country-telephone-data

Data related to a country's telephone dial code and number formatting
41 stars 38 forks source link

Deutschland phone number #8

Open nosovk opened 6 years ago

nosovk commented 6 years ago

There is mistake in mask for deutch numbers for example +49 176 22767171 is valid DE phone number, but in library pattern looks like: '+.. ... .......' It's one symbol shorter then real number.

mukeshsoni commented 6 years ago

@nosovk Can you give me a link which has documentation on the format?

nosovk commented 6 years ago

https://en.wikipedia.org/wiki/Telephone_numbers_in_Germany

nosovk commented 6 years ago

http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000510004MSWE.docx

mukeshsoni commented 6 years ago

I can't seem to find the relevant part. Except for one line which says 'Maximum number length - 13'. Any place which talks about this very specific format 'xx xxx xxxxxxxxx'?

koblas commented 5 years ago

From that wiki page --

015xx-xxxxxxx, 016x-xxxxxxx, 017x-xxxxxxx - Mobile numbers are assigned non-geographic area codes starting with 015, 016 and 017 and have a length of 3 or 4 digits without the trunk prefix. The numbers have a total length of ten or eleven digits without the trunk prefix: numbers starting with 17 or 16 are 10 digits long except 176 and 1609, which are 11 digits long like the numbers starting with 15.

mg commented 4 years ago

Any updates on this issue? Both valid german numbers and valid italian numbers are having their last digit cut off

+49 xxx xxxxxxxx -> +49 xxx xxxxxxx +39 xxx xxxxxxx -> +39 xxx xxxxxx