Skip to content
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

Customise postcode validation #784

Open
jimmyko opened this issue Jan 29, 2018 · 4 comments
Open

Customise postcode validation #784

jimmyko opened this issue Jan 29, 2018 · 4 comments

Comments

@jimmyko
Copy link

jimmyko commented Jan 29, 2018

I can see there is a pattern list for the postal code of different countries embed in this library. And I find some other issue raised to update the list. I faced a similar issue in my project that some of the patterns there does not meet the requirement. It would be great if we can override some of the patterns.

@chriso
Copy link
Collaborator

chriso commented Jan 29, 2018

If the patterns are wrong then I'd be happy to accept a PR with a fix.

@jimmyko
Copy link
Author

jimmyko commented Jan 29, 2018

@chriso Thanks for the quick feedback :) I want to use the custom post code doesn't mean the pattern currently using is wrong. The requirement of my project is to only accept one space within the UK's postcode, but some case might want to keep it optional.

@JoeEarly
Copy link

How can I get IE support added?

ezkemboi added a commit to ezkemboi/validator.js that referenced this issue Aug 11, 2019
- add postal code for ireland as requested by @JoeEarly from issue validatorjs#784
- fixes request done on issue validatorjs#784
@ezkemboi
Copy link
Member

@JoeEarly I have added IE support for postal code and the PR is up for review.

Cc. @profnandaa.

ezkemboi added a commit to ezkemboi/validator.js that referenced this issue Aug 12, 2019
- add postal code for ireland as requested by @JoeEarly from issue validatorjs#784
- fixes request done on issue validatorjs#784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants