From bf09e0f837f9eddadff255e52b7e0503fecfec8b Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Mon, 16 Sep 2013 18:53:07 +0200 Subject: [PATCH] [TASK] Empty strings are now considered missing parameter. --- src/Tools.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Tools.js b/src/Tools.js index 253254c..da0d34a 100644 --- a/src/Tools.js +++ b/src/Tools.js @@ -8,6 +8,9 @@ exports.reqParamsGiven = function (keys, obj) { if(value == undefined) { return false; } + if(typeof(value) == "string" && value == "") { + return false; + } } return true; } \ No newline at end of file