-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
Description
Describe the bug
When trying to validate passport numbers for Mexico, it was always failing. When looking at the underlying code, it says it is 10 or 11 digits, but that is incorrect, so it fails.
I cannot find an official page giving the verified format, but anecdotally and from a real person, it seems that the correct format is a letter, followed by 7 or 8 digits for the old format, or 9 alphanumeric characters.
Examples
Here are some websites that gives an example of a valid passport number that won't validate:
Reproductions
I've tried in versions 13.12.0 and 13.15.26
Additional context
Validator.js version: 13.12.0 and 13.15.26
Node.js version: N/A
OS platform: ubuntu