-
-
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
Validator for passport numbers #1218
Comments
Looks like a legit feature |
@tux-tn @profnandaa the validator is most likely to be something like: |
@hamzahejja -- this looks good to me, sure, you can go ahead 👍 |
@hamzahejja there is a international standard(sic), that could be tested.. also *CH and US has own standard).. none adhere to published "standards" maybe EU more than most. If it stays a regexp I have no problem; if it entails downloading lists(dbs) to check against... well no.. that is the developers prerogative.. Copying definitions same |
@AubreyHewes -- I think Hamza was working on a regex. |
How about validating passport numbers? The passport numbers vary from country to country so the functions should be like
isValidPassport(string, countryCode)
.The text was updated successfully, but these errors were encountered: