-
Notifications
You must be signed in to change notification settings - Fork 24
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
Parse csv content is not correct #70
Comments
Because of the space after the first This however also raises the question if we really want to simply ignore quote characters, if they appear inside unquoted strings. We definitely shouldn't ignore whitespace. (and papa parse doesn't either: https://www.papaparse.com/demo ) Ignoring the quote characters is IMO a bug. Papa parse also doesn't ignore the quote character. |
@close2 I also think it should consider a bug. From // If we are not yet inside a string, we are now
if (!_insideString) {
_insideString = true;
_insideQuotedString = true;
} To // We are now inside quote string.
_insideString = true;
_insideQuotedString = true; How do you think? |
Hi,
Thank you for your hardword to make a great lib.
Currently, I found an issue with following csv content:
I think the result should be two fields:
A B
&C, D
.But actually, the lib parse result as three fields:
A B
,C
andD
;Here is my sample code:
Output
The text was updated successfully, but these errors were encountered: