mirror of
https://github.com/gchq/CyberChef
synced 2025-01-09 11:08:47 +00:00
Base85: Only remove start and end markers with standard/ascii85 encoding
This commit is contained in:
parent
eab1be0e2c
commit
1294d764e2
1 changed files with 4 additions and 2 deletions
|
@ -68,8 +68,10 @@ class FromBase85 extends Operation {
|
||||||
|
|
||||||
input = input.replace(/\s+/g, "");
|
input = input.replace(/\s+/g, "");
|
||||||
|
|
||||||
const matches = input.match(/<~(.+?)~>/);
|
if (encoding === "Standard") {
|
||||||
if (matches !== null) input = matches[1];
|
const matches = input.match(/<~(.+?)~>/);
|
||||||
|
if (matches !== null) input = matches[1];
|
||||||
|
}
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
let block, blockBytes;
|
let block, blockBytes;
|
||||||
|
|
Loading…
Reference in a new issue