Browse Source

Merge branch 'bug-substitute'

n1474335 8 năm trước cách đây
mục cha
commit
a5ed824674
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/core/operations/Cipher.js

+ 2 - 2
src/core/operations/Cipher.js

@@ -766,8 +766,8 @@ const Cipher = {
      * @returns {string}
      * @returns {string}
      */
      */
     runSubstitute: function (input, args) {
     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 = "",
             output = "",
             index = -1;
             index = -1;