From 38b8c3e2d331d850f4148914e880fd82af222c4e Mon Sep 17 00:00:00 2001 From: Kendell R Date: Thu, 7 Mar 2024 15:52:39 -0800 Subject: [PATCH] Don't break `=` --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 23aa5eb..aaaa913 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,7 +23,7 @@ export function base64StringToArrayBuffer(b64str: string): ArrayBuffer { } export function textToArrayBuffer(str: string): ArrayBuffer { - return byteStringToBytes(decodeURI(encodeURIComponent(str))) + return byteStringToBytes(str) } export function arrayBufferToText(arrayBuffer: ArrayBuffer): string {