From d6705c682f630a203019fb57766c746fd4800f57 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 25 Aug 2017 11:44:31 +0000 Subject: [PATCH] Fixed bug in Substitute where commas would not encode correctly --- src/core/operations/Cipher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/operations/Cipher.js b/src/core/operations/Cipher.js index 63c70843..465c3e9e 100755 --- a/src/core/operations/Cipher.js +++ b/src/core/operations/Cipher.js @@ -766,8 +766,8 @@ const Cipher = { * @returns {string} */ runSubstitute: function (input, args) { - let plaintext = Utils.expandAlphRange(args[0]).join(), - ciphertext = Utils.expandAlphRange(args[1]).join(), + let plaintext = Utils.expandAlphRange(args[0]).join(""), + ciphertext = Utils.expandAlphRange(args[1]).join(""), output = "", index = -1;