diff --git a/src/scriptlets/trusted-replace-outbound-text.ts b/src/scriptlets/trusted-replace-outbound-text.ts index c5c6aaa5a..255818d1c 100644 --- a/src/scriptlets/trusted-replace-outbound-text.ts +++ b/src/scriptlets/trusted-replace-outbound-text.ts @@ -153,7 +153,7 @@ export function trustedReplaceOutboundText( * @param str - The string to be checked. * @returns A boolean indicating whether the string is a valid base64 encoded string. */ - const checkIfValidBase64 = (str: string): boolean => { + const isValidBase64 = (str: string): boolean => { try { if (str === '') { return false; @@ -191,7 +191,7 @@ export function trustedReplaceOutboundText( switch (decode) { case 'base64': try { - if (!checkIfValidBase64(content)) { + if (!isValidBase64(content)) { logMessage(source, `Text content is not a valid base64 encoded string: ${content}`); return content; }