max-mapper / max-mapper/csv-write-stream

Escaped quotes creating triple quotes

Open
#30 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
203
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Hello! Great tool, thanks for sharing!

I'm having a small issue with escaped quotes.

Ideal output "HEADER1","HEADER2"
Resulting output """HEADER1""","""HEADER2""" or HEADER1,HEADER2

Tested code:
var headers = ['HEADER1', 'HEADER2'];
var headers = ['\"HEADER1\"', '\"HEADER2\"'];

Is there a way to specific an enclosing tag perhaps?

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the two header arrays shown in the report and compare the quoted output with the expected CSV. Start at the CSV encoder entry point, which the payload does not name, then verify that the selected quoting behavior produces one pair of enclosing quotes without changing unquoted headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.