Wrong logic for base64 text detection

Created on 29 October 2024, about 2 months ago

Problem/Motivation

#3483072 introduced a new method isBase64Encoded but for some strings it does not work correctly

Steps to reproduce

isBase64Encoded('PROTOCOL') returns true what is wrong

Proposed resolution

Wouldn't it be easier to always use 'documentToTranslateBase64'? Drop usage of "textToTranslate"

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇵🇱Poland alorenc Wolsztyn, 🇵🇱

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024