From 11da4188ee7d96df6ca96726f0d6321137294f94 Mon Sep 17 00:00:00 2001 From: MikeCAT Date: Fri, 20 May 2022 11:59:04 +0000 Subject: [PATCH] fix "To Base45" ( #1351 ) --- src/core/operations/ToBase45.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/operations/ToBase45.mjs b/src/core/operations/ToBase45.mjs index 3246ab4e..a1cd9d2f 100644 --- a/src/core/operations/ToBase45.mjs +++ b/src/core/operations/ToBase45.mjs @@ -65,6 +65,10 @@ class ToBase45 extends Operation { if (chars < 2) { res.push("0"); + chars++; + } + if (pair.length > 1 && chars < 3) { + res.push("0"); } }