Skip to content

Commit bbcbdee

Browse files
committed
Handle "NULL" correctly in arrays
NULL in arrays is NULL, but "NULL" in arrays is 'NULL' (a string).
1 parent 5e1df9a commit bbcbdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arrayParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ArrayParser.prototype.newEntry = function(includeEmpty) {
3535
var entry;
3636
if (this.recorded.length > 0 || includeEmpty) {
3737
entry = this.recorded.join("");
38-
if (entry === "NULL") {
38+
if (entry === "NULL" && !includeEmpty) {
3939
entry = null;
4040
}
4141
if (entry !== null) {

0 commit comments

Comments
 (0)