From 4510eb6540f96b3867a03f934d414335a2ebbf8c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 27 Feb 2020 10:10:24 -0700 Subject: [PATCH] Match all the equals Co-Authored-By: Hubert Chathi --- src/crypto/olmlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/olmlib.js b/src/crypto/olmlib.js index a7dc7f7d2..7dcdda750 100644 --- a/src/crypto/olmlib.js +++ b/src/crypto/olmlib.js @@ -413,7 +413,7 @@ export function encodeBase64(uint8Array) { * @return {string} The unpadded base64. */ export function encodeUnpaddedBase64(uint8Array) { - return encodeBase64(uint8Array).replace(/=$/g, ''); + return encodeBase64(uint8Array).replace(/=+$/g, ''); } /**