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

FIX: Allow float-point numbers without decimal places in FloatValidator #3824

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from

Conversation

c4ll-m3-j4ck
Copy link
Contributor

The current implementation of the floatValidator uses parseFloat, which strips decimal point and places if a whole number (eg. .0) is provided. This then causes the regex validation to fail because it always assumes there to be a decimal point and following decimal places.

This change makes the decimal places in the regex-validation optional.

What I did

How I did it

How to verify it

The current implementation of the floatValidator uses parseFloat, which strips decimal point and places if a whole number (eg. .0) is provided. This then causes the regex validation to fail because it always assumes there to be a decimal point and following decimal places. 

This change makes the decimal places in the regex-validation optional.
@github-actions github-actions bot added the 9.0 label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant