Skip to content

Commit 1b99b52

Browse files
committed
Merge pull request victorjonsson#173 from stevewasiura/patch-1
numericRangeCheck logic tree fix for default no errors
2 parents 731a0c8 + ba0b795 commit 1b99b52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

form-validator/jquery.form-validator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,8 @@
10351035
{ return ["min", minmax]; } // value is below min
10361036
else if (rangeAllowed.indexOf('max') === 0 && (value > minmax ) ) // max
10371037
{ return ["max", minmax]; } // value is above max
1038-
else { return [ "ok" ] ; } // value is in allowed range
1038+
// since no other returns executed, value is in allowed range
1039+
return [ "ok" ] ;
10391040
},
10401041

10411042

0 commit comments

Comments
 (0)