mirror of
https://github.com/gchq/CyberChef.git
synced 2026-03-17 12:21:40 -07:00
fix(A1Z26): return empty string instead of empty array for empty input
The A1Z26 Cipher Decode operation declares outputType as 'string' but returned an empty array for empty input, violating its type contract. Fixes #2248
This commit is contained in:
parent
4deaa0de20
commit
cef5aee0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class A1Z26CipherDecode extends Operation {
|
|||
const delim = Utils.charRep(args[0] || "Space");
|
||||
|
||||
if (input.length === 0) {
|
||||
return [];
|
||||
return "";
|
||||
}
|
||||
|
||||
const bites = input.split(delim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue