From bbcbdee584652c8f0f404d45fc8de097a3fbc50e Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 5 Mar 2012 15:52:00 -0800 Subject: [PATCH] Handle "NULL" correctly in arrays NULL in arrays is NULL, but "NULL" in arrays is 'NULL' (a string). --- lib/arrayParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arrayParser.js b/lib/arrayParser.js index e14f8e9..06f13cc 100644 --- a/lib/arrayParser.js +++ b/lib/arrayParser.js @@ -35,7 +35,7 @@ ArrayParser.prototype.newEntry = function(includeEmpty) { var entry; if (this.recorded.length > 0 || includeEmpty) { entry = this.recorded.join(""); - if (entry === "NULL") { + if (entry === "NULL" && !includeEmpty) { entry = null; } if (entry !== null) {