Remove trim from rail fence.

This commit is contained in:
Odyhibit 2025-02-21 20:40:37 -06:00
parent d3357d2acd
commit 2c32a64bfe
3 changed files with 13 additions and 2 deletions

View file

@ -72,7 +72,7 @@ class RailFenceCipherDecode extends Operation {
}
}
return plaintext.join("").trim();
return plaintext.join("");
}
}

View file

@ -66,7 +66,7 @@ class RailFenceCipherEncode extends Operation {
rows[rowIdx] += plaintext[pos];
}
return rows.join("").trim();
return rows.join("");
}
}