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

Added phone number patterns for de_CH and it_CH #2147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flo-ri-an
Copy link

@flo-ri-an flo-ri-an commented Jan 3, 2025

What does this change

In addition to fr_CH, this adds phone number patterns for de_CH and it_CH (they are identical for all three locales). Also, patterns were updated to match valid CH phone numbers as closely as possible according to https://de.wikipedia.org/wiki/Telefonnummer_(Schweiz)#Schreibweisen.

What was wrong

Patterns were only present for fr_CH, so faker threw an exception when the locale was set to either de_CH or it_CH

How this fixes it

New patterns add support for the missing locales

Fixes #2148

Checklist

  • I have read the documentation about CONTRIBUTING
  • I have read the documentation about Coding style
  • I have run make lint

@flo-ri-an
Copy link
Author

I did not touch the module where typing tests fail. Should probably be fixed separately?

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.

Phone number patterns for de_CH and it_CH are missing.
1 participant