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

Take into account area codes for French phone numbers #1560

Merged
merged 1 commit into from Oct 27, 2021

Conversation

nicarl
Copy link
Contributor

@nicarl nicarl commented Oct 22, 2021

What does this changes

Generate more realistic French phone numbers.

What was wrong

The phone numbers did not take into account that not all combinations for the third and fourth are allowed. It depends on the two first digits.

How this fixes it

French landline numbers (starting with 01, 02, 03, 04, 05) are limited to well-known area codes. This is taken into account when generating the phone numbers.

Mobile phone numbers starting with 07 are also added.

Fixes: #1516

French landline numbers (starting with 01, 02, 03, 04, 05) are limited to well-known area codes. This is taken into account when generating the phone numbers.

Mobile phone numbers starting with 07 are also added.

Fixes: joke2k#1516
@fcurella
Copy link
Collaborator

Thank you!

@fcurella fcurella merged commit f1f93a8 into joke2k:master Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locale fr_FR : phone_number generate invalid values
2 participants