Skip to content

[FEATURE] Parsing row issue #830

@LiYiuShing

Description

@LiYiuShing

Parsing or Formatting?

  • [] Formatting
  • Parsing

Hi, I'm trying to load my CSV into an array. However, it failed cause of Error: Parse Error: expected: '\|' OR new line got: 'S'. at 'SADDD" 00:. I knew the error is caused by ", but I don't know how to set the option to escape that.

This is one of my failed row:
"ABC"|"123"|"EFG- "SADDD" 00:10L"|" "|""|"Testing"|"testing2"|"testing3"|"testing4"

This is my csv option:

const CSV_OPTIONS = {
    objectMode: true,
    delimiter: "|",
    rowDelimiter: "\r\n",
    headers: true,
    strictColumnHandling: true,
    discardUnmappedColumns: true,
    renameHeaders: false,
    ignoreEmpty: true,
};

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions