We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
validator.isFloat("-.01") = false. I'm using version 6.2.0 currently, didn't know if this is expected or has been reported already.
validator.isFloat("-.01")
The text was updated successfully, but these errors were encountered:
Thanks for the report.
Given that -.01 is allowed as a literal and is accepted by parseFloat I think it's ok:
-.01
parseFloat
> -.01 -0.01 > parseFloat('-.01') -0.01
Also it looks like isFloat('.01') is true so this is inconsistent behavior.
isFloat('.01')
true
Sorry, something went wrong.
cd92fb3
fix: Remove test that thinks -.123 is not a valid float (see validato…
370dbbb
…rjs/validator.js#618)
e67b218
No branches or pull requests
validator.isFloat("-.01")
= false. I'm using version 6.2.0 currently, didn't know if this is expected or has been reported already.The text was updated successfully, but these errors were encountered: