Browse Source

ignoreLastRow should take priority in unfinished processing.

pull/730/head
Jamie Seter 5 years ago
parent
commit
162d442b50
  1. 5
      papaparse.js

5
papaparse.js

@ -1510,6 +1510,9 @@ License: MIT @@ -1510,6 +1510,9 @@ License: MIT
//No other quotes are found - no other delimiters
if (quoteSearch === -1)
{
if(ignoreLastRow)
return returnable();
if(strictQuote) {
errors.push({
type: 'Quotes',
@ -1522,7 +1525,6 @@ License: MIT @@ -1522,7 +1525,6 @@ License: MIT
quoteFallThrough = true;
break; // fall through to parse as non-quote.
}
if (!ignoreLastRow) {
// No closing quote... what a pity
errors.push({
type: 'Quotes',
@ -1531,7 +1533,6 @@ License: MIT @@ -1531,7 +1533,6 @@ License: MIT
row: data.length, // row has yet to be inserted
index: cursor
});
}
return finish(input.substring(cursor + 1));
}

Loading…
Cancel
Save