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

Wrong regex #11

Open
HybridSolutions opened this issue Mar 22, 2021 · 0 comments
Open

Wrong regex #11

HybridSolutions opened this issue Mar 22, 2021 · 0 comments

Comments

@HybridSolutions
Copy link

You have some regex patterns wrong. PT and JP don't have optional dash "-".

in PT, the number 1233123 will validate and that is incorrect. Zip codes for Portugal must have the pattern NNNN-NNN. The correct pattern should be ^\d{4}-\d{3}$

For japan, the correct pattern should be ^\d{3}-\d{4}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant