Feature request: Validate leading zero for numericality #106
Comments
mondwan
added a commit
to mondwan/validate.js
that referenced
this issue
Mar 24, 2016
Agreed, though I think the option should be called |
Please make this an option, I would like cases where it is the current behavior. |
This option is optional by default |
By the way, option has been renamed to If yes, I can simply add a check and bypass this checking. |
This is now released in 0.10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goal:
"010"
to be false innumericality
validatorDescription:
It will be great if there is an option like
noLeadingZero
innumericality
.Why
+
will force"010"
to be10
Facts above make
010
to be a valid number which it should not be in reality in my opinion.JS:
Fiddler:
https://jsfiddle.net/8okbtbuz/2/
The text was updated successfully, but these errors were encountered: