Skip to content

Commit f9e1f78

Browse files
author
Matanya Fischeimer
committed
fix
1 parent 0ac3f62 commit f9e1f78

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/validation/rules/compare.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ module.exports = function(that, gt) {
55
if (!that.value)
66
return true;
77

8-
var fields = that.rules.greaterThan.split(",");
8+
var type = gt?'greaterThan':'smallerThan';
9+
10+
var fields = that.rules[type].split(",");
911

1012
return fields.filter(function(field){
1113

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-formular",
33
"description": "a comprehensive vue.js form component",
4-
"version": "1.2.2",
4+
"version": "1.2.21",
55
"keywords": [
66
"vue",
77
"form",

0 commit comments

Comments
 (0)