d3fc-webgl-hathi-explorer icon indicating copy to clipboard operation
d3fc-webgl-hathi-explorer copied to clipboard

Small bug in tsvChunkedParser?

Open acycliq opened this issue 4 years ago • 0 comments

When the parser reads the tsv it appends the last line of the chunk to the next batch. Which is fine, but I think it should be appended at the very beginning. Hence in streaming-tsv-parser.js, I believe line 12 from const textData = textDecoder.decode(chunk) + previousChunk ; should be changed to: const textData = previousChunk + textDecoder.decode(chunk) ;

acycliq avatar Jul 08 '20 08:07 acycliq