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
min: 0
When the entered value is .2 instead of 0.2, the value is marked invalid when it is actually valid.
.2
0.2
While a javascript number can't be written as .2, <input> values (e.g. $('<input>').val()) are strings.
<input>
$('<input>').val()
jsFiddle: http://jsfiddle.net/j6ku2o18/3/
The text was updated successfully, but these errors were encountered:
(working on a PR, should just be a quick fix to the number regex)
Sorry, something went wrong.
fixed in PR #341
This is fixed in a fork i'm maintaining (tried contact this repository admins without luck): https://github.com/blikblum/backbone.validation
The updated package can be found at https://www.npmjs.com/package/backbone.validation
To use with node: npm install backbone.validation
No branches or pull requests
When the entered value is
.2
instead of0.2
, the value is marked invalid when it is actually valid.While a javascript number can't be written as
.2
,<input>
values (e.g.$('<input>').val()
) are strings.jsFiddle: http://jsfiddle.net/j6ku2o18/3/
The text was updated successfully, but these errors were encountered: