The isFloat validation rule is not allowing negative numbers, is this correct behaviour?
Comparing to isNumber, it appears isFloat is deliberately not allowing -:
isNumber: value => validations.matchRegexp(value, /^-?[0-9]\d*(\d+)?$/i),
isFloat: value => validations.matchRegexp(value, /^(?:[1-9]\d*|0)?(?:\.\d+)?$/i),
The isFloat validation rule is not allowing negative numbers, is this correct behaviour?
Comparing to isNumber, it appears isFloat is deliberately not allowing
-
: