We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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}$
^[1-9]\d{2}\s?\d{2}$
The text was updated successfully, but these errors were encountered:
Update SE isPostalCode.js
1e06d36
Update to SE regexp to not consider postal codes in Sweden with a leading 0 to be a valid postal code Fixes validatorjs#1008
@simison - a PR is welcome, I see you already have some work on your branch?
Sorry, something went wrong.
fix: ensure sweedish postal code does not allow start with 0
6cc1845
- Authored by Ezrqn Kemboi <ezrqnkemboi@gmail.com> - Close validatorjs#1008
54bf8c4
No branches or pull requests
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}$
The text was updated successfully, but these errors were encountered: