js-validate
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "js-validate", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"homepage": "https://github.com/kshunz/js-validate", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "js-validate", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Functional, extensible, input validation. Make sure the value you receive is EXACTLY what you expect.", | ||
@@ -5,0 +5,0 @@ "main": "src/validate.js", |
@@ -51,3 +51,3 @@ module.exports = function Validate() { | ||
validatorInput = rule.split(' '); //rules may have parameters separated by spaces | ||
flipRule = _.contains(['not', '!', '-'], _.first(validatorInput)) && validatorInput.length > 1; | ||
flipRule = _.includes(['not', '!', '-'], _.first(validatorInput)) && validatorInput.length > 1; | ||
@@ -54,0 +54,0 @@ if(flipRule) { |