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

Replace header with nothing line failed on very large csv files #31

Open
rklaeboe opened this issue Dec 6, 2016 · 1 comment
Open

Comments

@rklaeboe
Copy link

rklaeboe commented Dec 6, 2016

/replacestream/index.js:36
var haystack = tail + buf.toString(options.encoding);
^
RangeError: Invalid string length

Simple replacements + with longer text fragments
worked OK on same file (3 million lines csv file).

Error occurred when trying to only remove first line.
replace .*\n with '' {limit : 1}
Also regex without /g failed but worked with /g
(Used striplines for this task instead).

@ryanmalone
Copy link

getting the same issue

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