Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customisations for german phone numbers #79

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Customisations for german phone numbers #79

wants to merge 3 commits into from

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.

…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.

None yet

1 participant