diff --git a/src/multibase.ts b/src/multibase.ts index fdada0c..f12513e 100644 --- a/src/multibase.ts +++ b/src/multibase.ts @@ -19,7 +19,7 @@ export default abstract class Multibase { } bytes = base32.decode(str); } else if (data[0] === "u") { - let str = data.substring(1); + let str = data; while (str.length % 4 !== 0) { str += "="; }