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

Price parsing complies the standard, but is invalid #21

Open
FerencDenes opened this issue Oct 18, 2023 · 0 comments
Open

Price parsing complies the standard, but is invalid #21

FerencDenes opened this issue Oct 18, 2023 · 0 comments

Comments

@FerencDenes
Copy link

FerencDenes commented Oct 18, 2023

https://kezemura.hu/products/goro-blue quotes the price as 13.900 in some locales this might be ok and just means 13900
In this case we have no decimals. This is turned to 13.0 by the toPriceFormat helper.

Use regexp: ^(\d+\.?){1}(\.\d{2,3})*(\,\d{1,2})?$

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

1 participant