Handle "NULL" correctly in arrays
NULL in arrays is NULL, but "NULL" in arrays is 'NULL' (a string).
This commit is contained in:
parent
5e1df9a4e5
commit
bbcbdee584
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user