Handle "NULL" correctly in arrays

NULL in arrays is NULL, but "NULL" in arrays is 'NULL' (a string).
This commit is contained in:
Jeremy Evans 2012-03-05 15:52:00 -08:00
parent 5e1df9a4e5
commit bbcbdee584

View File

@ -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) {