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

Postal code validation error messages don't match with regex #2362

Open
ignas-seskauskas2 opened this issue Oct 17, 2023 · 0 comments
Open
Assignees

Comments

@ignas-seskauskas2
Copy link

Postal code validation error message doesn't show correct information. It says that 99999 format should be correct, but it's not correct, error message is still shown.

image

In https://github.com/Adyen/adyen-web/blob/main/packages/lib/src/components/internal/Address/validate.ts:
language LT pattern is "/^(LT-\d{5})$/"
But in https://github.com/Adyen/adyen-web/blob/main/packages/lib/src/components/internal/Address/validate.formats.ts error message for language LT is: '9999 or 99999 or LT-99999'

There may be a similiar issue for other languages too

@m1aw m1aw self-assigned this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants