juliangruber / juliangruber/comma
option for more correct parser
Open
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
The current implementation parses
```
"a,b",c,d
```
as
``` js
[ '"a', 'b"', 'c', 'd' ]
```
That's not correct but makes the parser faster.
It would be neat if there were an option that instead outputted
``` js
['a,b', 'c', 'd']
```
Maybe `parse({ correct : true })`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the current CSV parser and its parse API, then trace how quoted fields are split. Done means an option such as parse({ correct: true }) returns ['a,b', 'c', 'd'] for the shown input while preserving the existing fast behavior by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100