-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
get list of supported countries for passports #2403
Labels
Comments
derekparnell
pushed a commit
to derekparnell/validator.js
that referenced
this issue
May 21, 2024
- get list of supported countries for passports The list of supported countries was not exported, so it was impossible to know which countries were available from code. Added a simple export of the countries as locale, similar to how it is done in `isPostalCode.js`.
I created a fix and a corresponding Pull request |
derekparnell
pushed a commit
to derekparnell/validator.js
that referenced
this issue
Jun 13, 2024
- changed the naming of `isPassportNumberLocales` to be `passportNumberLocales`. See validatorjs#2404 (comment)
profnandaa
pushed a commit
that referenced
this issue
Jun 22, 2024
See #2404 (comment) --------- Co-authored-by: Derek Parnell <[email protected]>
closed in #2404 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having a similar issue to that of #815, but for passports.
Specifically, I would like to validate passport numbers for all known countries, but for unknown countries I would like to provide my own, simple validation. However, the list of known countries is not programmatically available, so unknown countries are just considered invalid.
As an example, Albania is unknown and so the code simply returns that it is false.
The text was updated successfully, but these errors were encountered: