Base85: Ignore whitespace
This commit is contained in:
1 file changed
+2
@@ -52,6 +52,8 @@ class FromBase85 extends Operation {
|
|||||||
|
|
||||||
if (input.length === 0) return [];
|
if (input.length === 0) return [];
|
||||||
|
|
||||||
|
input = input.replace(/\s+/g, "");
|
||||||
|
|
||||||
const matches = input.match(/<~(.+?)~>/);
|
const matches = input.match(/<~(.+?)~>/);
|
||||||
if (matches !== null) input = matches[1];
|
if (matches !== null) input = matches[1];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user