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

isPostalCode for SE returns valid postal code for postal code with leading 0 #1008

Closed
simonlovesyou opened this issue Mar 27, 2019 · 1 comment
Labels

Comments

@simonlovesyou
Copy link

There are no postal codes in Sweden that starts with a leading 0 (Sorry for Swedish link)

So we should probably update the postal code regex to be something like ^[1-9]\d{2}\s?\d{2}$

simonlovesyou added a commit to simonlovesyou/validator.js that referenced this issue Mar 27, 2019
Update to SE regexp to not consider postal codes in Sweden with a leading 0 to be a valid postal code

Fixes validatorjs#1008
@profnandaa
Copy link
Member

@simison - a PR is welcome, I see you already have some work on your branch?

ezkemboi added a commit to ezkemboi/validator.js that referenced this issue Jul 24, 2019
- Authored by Ezrqn Kemboi <ezrqnkemboi@gmail.com>
- Close validatorjs#1008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants