2
0
Fork 0
mirror of https://github.com/gchq/CyberChef synced 2025-03-14 05:46:56 +00:00

Use doublequotes

This commit is contained in:
Jocelyn Castellano 2023-11-20 10:51:34 -08:00 committed by GitHub
parent 7e6813c326
commit fad3b97874
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)");
}