-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing a Field with internal quotes fails #100
Comments
You cannot have a quote inside without quotes on the outside per the RFC.
|
Which RFC though? I looked at 2234 and it seems to be talking about ABNF and not any csv stuff |
https://tools.ietf.org/html/rfc4180 - Section 2 |
I have some ideas about refactoring how the parsers are defined to make code reuse more possible and let people define their own custom parsing rules - I'll see if I can make a POC repo at some point for that. |
It's very common for CSV files in practice to have quotes inside of a field, like this:
I'd expect the row to be parsed as follows, because the quotes are not escaping a
,
(or\t
for TSV parsing)A test:
Failure:
I expect this behavior is to handle using
"
to escape separators inside fields, but I think that could be covered by only handling it as an escape if it's at the edge of the field.The text was updated successfully, but these errors were encountered: