mirror of
https://github.com/gchq/CyberChef
synced 2025-01-06 01:28:48 +00:00
fix "To Base45" ( #1351 )
This commit is contained in:
parent
477e4a7421
commit
11da4188ee
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ class ToBase45 extends Operation {
|
||||||
|
|
||||||
if (chars < 2) {
|
if (chars < 2) {
|
||||||
res.push("0");
|
res.push("0");
|
||||||
|
chars++;
|
||||||
|
}
|
||||||
|
if (pair.length > 1 && chars < 3) {
|
||||||
|
res.push("0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue