nextDelim=input.indexOf(delim,cursor);// because we may have skipped the nextDelim in the quoted field
quoteSearch=input.indexOf(quoteChar,cursor);// we search for first quote in next line
if(stepIsFunction)
{
doStep();
if(aborted)
returnreturnable();
}
if(preview&&data.length>=preview)
returnreturnable(true);
break;
}
// Checks for valid closing quotes are complete (escaped quotes or quote followed by EOF/delimiter/newline) -- assume these quotes are part of an invalid text string
errors.push({
type:'Quotes',
code:'InvalidQuotes',
message:'Trailing quote on quoted field is malformed',