eugeneware / eugeneware/replacestream

Replace header with nothing line failed on very large csv files

Open
#31 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.