1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-02 17:02:31 +03:00

Match all the equals

Co-Authored-By: Hubert Chathi <hubert@uhoreg.ca>
This commit is contained in:
Travis Ralston
2020-02-27 10:10:24 -07:00
committed by GitHub
parent 9a236f317d
commit 4510eb6540

View File

@@ -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, '');
}
/**