[BUG] comment
doesn't work when first field in line is escaped
#777
Labels
comment
doesn't work when first field in line is escaped
#777
Describe the bug
Seems that if a line, which is supposed to be a comment, starts with an escaped field (i.e.
"# e.g. apples, oranges, grapes"
) - the line is not detected as a comment and is included in the output.See reproduction on RunKit: https://runkit.com/embed/jhkygl35xji6
Parsing or Formatting?
To Reproduce
Steps to reproduce the behavior:
escapedCommentFieldCsvString
Options passed to the parse method:
Expected behavior
Output should not include comment lines whose first field includes comment token but is escaped.
The expected output is:
Screenshots
If applicable, add screenshots to help explain your problem.Desktop (please complete the following information):
Additional context
@fast-csv/parse
version 4.3.6The text was updated successfully, but these errors were encountered: