Browse Source

Fixed bug in Substitute where commas would not encode correctly

n1474335 8 years ago
parent
commit
d6705c682f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/operations/Cipher.js

+ 2 - 2
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;