fix(A1Z26): return empty string instead of empty array for empty input (#2257)

This commit is contained in:
John Brick 2026-03-19 13:10:35 +03:00 committed by GitHub
parent 4deaa0de20
commit eef8d55d86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 35 additions and 1 deletions

View file

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