Skip to content

Conversation

@Skudo
Copy link

@Skudo Skudo commented Mar 4, 2016

This PR addresses two "features" of German phone numbers.

  • Area codes (without the leading zero) can have different lengths ranging from 2 to 4.
  • The (recommended) maximum length for country code + area code + number is 15, which means number can be up to 11 digits long.

Skudo added 3 commits March 4, 2016 16:34
…umbers.

Given a text file with (most) known German area codes, phone numbers are parsed accordingly. As a fallback, we keep the default provided by `countries.yml`, because the list does not know about "service area codes", mobile phone area codes etc.

This however should handle all landline area codes in Germany.
…its.

According to the regulation office, German phone numbers are recommended to have no more than 15 digits, including country code and area code, but excluding leading zeros. Given 2-digits area codes, that's up to 11 digits for the "remainder" of a phone number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant