eugeneware / eugeneware/replacestream
Replace header with nothing line failed on very large csv files
Open
- Dominant language
- JavaScript
- Stars
- 177
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
/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).
Contributor guide
Assessment
This issue has not been assessed yet.