csvToJson icon indicating copy to clipboard operation
csvToJson copied to clipboard

[BUG] Error on parsing line breaks within quoted fields

Open zitrusblau opened this issue 2 years ago • 1 comments

Expected Behavior

Interpret and convert line breaks in quoted fields correctly.

Actual Behavior

Unable to convert/parse CSV correctly. Error thrown:

/app/node_modules/convert-csv-to-json/src/csvToJson.js:215 throw new Error('Row contains mismatched quotes!');

Steps to Reproduce the Problem

  1. Create a CSV adding line breaks within a quoted field
  2. use option .supportQuotedField(true)

Specifications

  • Version: 2.0.0

zitrusblau avatar Mar 15 '23 10:03 zitrusblau