validatorjs / validator.js

String validation
MIT License
23.15k stars 2.32k forks source link

Add countries to validate passport number. #1288

Open abhieshekumar opened 4 years ago

abhieshekumar commented 4 years ago

I was going through the passport validator source code and noticed that a few countries were missing. Can I add those countries to the list?

profnandaa commented 4 years ago

For sure, please raise a PR.

abhieshekumar commented 4 years ago

Ok, working on it.

JuanFML commented 3 years ago

Hello, I see this hasn't been worked on, I could work on this, although I've done some reaserch and I have only found these:

I could add these ones, but if you know somewhere I could find more, please let me know.

profnandaa commented 3 years ago

Nice, please go ahead, thanks :)

./na

On Tue, Dec 15, 2020 at 1:13 AM JuanFML notifications@github.com wrote:

Hello, I see this hasn't been worked on, I could add Mexico, Kazakhstan, Liechtenstein, Malaysia, Thailand, New Zeland and Jamaica.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/validatorjs/validator.js/issues/1288#issuecomment-744743511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7ZEK3FGI46LVRZ4HFNLTSU2EZ7ANCNFSM4MTNCLEA .

--

___Nandaa Anthony @profnandaa https://github.com/profnandaa

chrystalme commented 2 years ago

Hello guys, I would like to help including Nigeria and Lebanon to the list of isPassportNumber.

kasir-barati commented 2 years ago

@profnandaa please consider my issue here and this PRs: Nigeria passport number validation, and Thialand.

sherifsallam commented 2 years ago

Hello guys, I would like to add Egypt, Tunisia, and Saudi Arabia to the list of passport countries. I know what their format is. Would that be possible? Please let me know! :)

WikiRik commented 2 years ago

Hello guys, I would like to add Egypt, Tunisia, and Saudi Arabia to the list of passport countries. I know what their format is. Would that be possible? Please let me know! :)

If there's no PR for those yet you can feel free to make one

sherifsallam commented 2 years ago

Thank you! I'll be submitting it shortly.