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

isNumeric and locale for decimal separator #1329

Closed
matthieu88160 opened this issue May 29, 2020 · 0 comments
Closed

isNumeric and locale for decimal separator #1329

matthieu88160 opened this issue May 29, 2020 · 0 comments

Comments

@matthieu88160
Copy link
Contributor

The isNumeric validator regex pattern expects the decimal separator to be a dot and no locale option can be provided, making the validator rejecting comma-separated languages like french one.
The current isFloat implementation takes care of the locale option and uses the alpha library part to define the decimal separator for the given option locale.

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

No branches or pull requests

2 participants