mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 11:16:10 +02:00
Improve legacy EOF detector: Must be at least >= size of SAUCE
This commit is contained in:
parent
b0d081ad04
commit
228d3e3ae7
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ function sliceAtEOF(data, eofMarker) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(eof === data.length || eof < 128) {
|
||||
return data;
|
||||
}
|
||||
return data.slice(0, eof);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue