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

\r breaks line, but it should not #22

Open
Wojtziech opened this issue Jan 24, 2017 · 1 comment
Open

\r breaks line, but it should not #22

Wojtziech opened this issue Jan 24, 2017 · 1 comment

Comments

@Wojtziech
Copy link

Following code should print two identical lines:

var CSV = require('csv-string');

var testdata = [
	['a\rb','cd']
]

console.log(JSON.stringify(testdata));
console.log(JSON.stringify(CSV.parse(CSV.stringify(testdata))));

What I get is:

[["a\rb","cd"]]
[["a"],["b","cd"]]
@hossam-magdy
Copy link
Contributor

This should be resolved by #38

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

No branches or pull requests

2 participants