Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fr_ssnaccepts zero-padded 3-digit department codes:In a French social security number (NIR), the department of birth is 2 characters (
01-95,2A/2B,99for people born abroad); only the overseas departments use 3 digits (971-976, followed by a 2-digit commune). The pattern allowed any\d{2,3}, andfr_department("075")parses it as75, so075,001, ... were accepted.The department group is now
(\d{2}|97\d|2[AB]);fr_departmentstill limits the 3-digit form to 971-976 (970 and 977-979 stay invalid). Existing valid numbers, including the overseas one in the tests, still pass.Added two invalid cases to
tests/i18n/test_fr.py(both fail without the change).tests/i18nand thefr.pydoctests pass, and ruff is clean.Related: #549 also edits
fr_ssn(key-less width check) and the same test list, so whichever lands second may need a trivial merge.