node-csv-parse icon indicating copy to clipboard operation
node-csv-parse copied to clipboard

TSV files with quotes are not parsed correctly

Open moltar opened this issue 3 years ago • 0 comments

Describe the bug

Quotes are not parsed and an error is raised:

Invalid Opening Quote: a quote is found inside a field at line 2

To Reproduce

col1  col2
val1  "val "" 2"
parse(report, {
  delimiter: '\t',
  skipEmptyLines: true,
})

Additional context

Tried suggestion from #289, to set quote value to empty string, but then quotes are not parsed at all:

{
  col1: 'val1',
  col2: '"val "" 2"'
}

Thanks!

moltar avatar Jun 18 '21 15:06 moltar