We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 369357a commit cdc8c09Copy full SHA for cdc8c09
lib/arrayParser.js
@@ -31,9 +31,9 @@ ArrayParser.prototype.nextChar = function() {
31
ArrayParser.prototype.record = function(char) {
32
return this.recorded.push(char);
33
};
34
-ArrayParser.prototype.newEntry = function() {
+ArrayParser.prototype.newEntry = function(includeEmpty) {
35
var entry;
36
- if (this.recorded.length > 0) {
+ if (this.recorded.length > 0 || includeEmpty) {
37
entry = this.recorded.join("");
38
if (entry === "NULL") {
39
entry = null;
@@ -70,7 +70,7 @@ ArrayParser.prototype.parse = function(nested) {
70
}
71
} else if (c.char === '"' && !c.escaped) {
72
if (quote) {
73
- this.newEntry();
+ this.newEntry(true);
74
75
quote = !quote;
76
} else if (c.char === ',' && !quote) {
0 commit comments