@ -1201,7 +1201,7 @@
{
if (ignoreLastRow)
return returnable();
if (!value)
if (typeof value === 'undefined')
value = input.substr(cursor);
row.push(value);
cursor = inputLen; // important in case parsing is paused
@ -219,6 +219,14 @@ var CORE_PARSER_TESTS = [
errors: []
}
},
description: "Empty quoted field at EOF is empty",
input: 'a,b,""\na,b,""',
expected: {
data: [['a', 'b', ''], ['a', 'b', '']],
description: "Multiple consecutive empty fields",
input: 'a,b,,,c,d\n,,e,,,f',