From cef5aee0cbc7f3a3bed8bfd423ae6be49cbf13a0 Mon Sep 17 00:00:00 2001 From: brick-pixel Date: Mon, 16 Mar 2026 21:17:23 +0000 Subject: [PATCH] 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 --- src/core/operations/A1Z26CipherDecode.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/A1Z26CipherDecode.mjs b/src/core/operations/A1Z26CipherDecode.mjs index 0b097c2bf..cc9aafbf7 100644 --- a/src/core/operations/A1Z26CipherDecode.mjs +++ b/src/core/operations/A1Z26CipherDecode.mjs @@ -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);