Improve legacy EOF detector: Must be at least >= size of SAUCE

This commit is contained in:
Bryan Ashby
2019-05-13 21:31:34 -06:00
parent b0d081ad04
commit 228d3e3ae7

View File

@@ -57,6 +57,9 @@ function sliceAtEOF(data, eofMarker) {
break;
}
}
if(eof === data.length || eof < 128) {
return data;
}
return data.slice(0, eof);
}