fix: don't strip u

This commit is contained in:
Derrick Hammer 2023-11-18 07:45:18 -05:00
parent 968459d1c0
commit b3174cacf7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default abstract class Multibase {
} }
bytes = base32.decode(str); bytes = base32.decode(str);
} else if (data[0] === "u") { } else if (data[0] === "u") {
let str = data.substring(1); let str = data;
while (str.length % 4 !== 0) { while (str.length % 4 !== 0) {
str += "="; str += "=";
} }