mirror of
https://github.com/gchq/CyberChef
synced 2026-01-08 19:43:18 +00:00
Base85: Only remove start and end markers with standard/ascii85 encoding
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user