From fad3b97874202d863a22751bebace16aef9aebcc Mon Sep 17 00:00:00 2001 From: Jocelyn Castellano Date: Mon, 20 Nov 2023 10:51:34 -0800 Subject: [PATCH] Use doublequotes --- src/core/lib/Base64.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/Base64.mjs b/src/core/lib/Base64.mjs index a88c819758..56a00c1e64 100644 --- a/src/core/lib/Base64.mjs +++ b/src/core/lib/Base64.mjs @@ -136,7 +136,7 @@ export function fromBase64(data, alphabet="A-Za-z0-9+/=", returnType="string", r enc3 = alphabet.indexOf(data.charAt(i++) || null); enc4 = alphabet.indexOf(data.charAt(i++) || null); - if (strictMode && (enc1 < 0 || enc2 < 0 || (enc3 < 0 && data.charAt(i - 2) !== '') ||(enc4 < 0 && data.charAt(i - 1) !== ''))) { + if (strictMode && (enc1 < 0 || enc2 < 0 || (enc3 < 0 && data.charAt(i - 2) !== "") ||(enc4 < 0 && data.charAt(i - 1) !== ""))) { throw new OperationError("Error: Base64 input contains non-alphabet char(s)"); }