1
0
mirror of synced 2024-12-13 07:21:06 +01:00

Base85: Only remove start and end markers with standard/ascii85 encoding

This commit is contained in:
Benedikt Werner 2020-05-22 03:30:15 +02:00
parent eab1be0e2c
commit 1294d764e2
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB

View File

@ -68,8 +68,10 @@ class FromBase85 extends Operation {
input = input.replace(/\s+/g, "");
const matches = input.match(/<~(.+?)~>/);
if (matches !== null) input = matches[1];
if (encoding === "Standard") {
const matches = input.match(/<~(.+?)~>/);
if (matches !== null) input = matches[1];
}
let i = 0;
let block, blockBytes;