Skip to content
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

Escape CSV data that needs escaping #26

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Conversation

dan24678
Copy link

Per #25 CSV data should be treated as follows:

  1. If the value contains a comma, newline or double quote, then the String value should be returned enclosed in double quotes.
  2. Any double quote characters in the value should be escaped with another double quote.
  3. If the value does not contain a comma, newline or double quote, then the String value should be returned unchanged.

@jecovier jecovier merged commit 36208a8 into jecovier:master Jan 2, 2018
@jecovier
Copy link
Owner

jecovier commented Jan 2, 2018

@DrLongGhost Thank you for this fix, I had not thought about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants