express-validator
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -47,5 +47,3 @@ /* | ||
methods[methodName] = function() { | ||
var arguments = Array.prototype.slice.call(arguments); | ||
var args = [value].concat(arguments); | ||
var args = [value].concat(Array.prototype.slice.call(arguments)); | ||
var result = validator[methodName].apply(validator, args); | ||
@@ -108,5 +106,3 @@ request.updateParam(param, result); | ||
methods[methodName] = function() { | ||
var arguments = Array.prototype.slice.call(arguments); | ||
var args = [value].concat(arguments); | ||
var args = [value].concat(Array.prototype.slice.call(arguments)); | ||
var isCorrect = validator[methodName].apply(validator, args); | ||
@@ -113,0 +109,0 @@ |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "https://github.com/ctavan/express-validator", | ||
@@ -14,0 +14,0 @@ "repository": { |
28115
602