-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Improve fr_FR provider postcode #1852
Improve fr_FR provider postcode #1852
Conversation
a90e0e9
to
4d72728
Compare
we could just check that the first 2 characters are a valid department code? Better than nothing :) |
4d72728
to
0187102
Compare
I added the check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the linting issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the linting issue?
0187102
to
0eac3af
Compare
I fixed it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
What does this change
Improve postcode for fr_FR address provider
What was wrong
The current provider may generate postcodes for invalid departments (any number starting with 96 is invalid)
How this fixes it
Generate postcode from department codes
NB: I'm not sure how to test this commit : I could check that the generated postcode always match a department, but the test would be flaky before the fix...