Skip to content

Commit ad41480

Browse files
committed
Merge pull request #143 from aleksandr-m/feature/step_any
bypass step validation when step is 'any'
2 parents 97a6b0f + e87ede1 commit ad41480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ QueryBuilder.prototype.validateValueInternal = function(rule, value) {
139139
break;
140140
}
141141
}
142-
if (validation.step !== undefined) {
142+
if (validation.step !== undefined && validation.step !== 'any') {
143143
var v = value[i]/validation.step;
144144
if (parseInt(v) != v) {
145145
result = ['number_wrong_step', validation.step];

0 commit comments

Comments
 (0)