Skip to content

Commit

Permalink
Fixed bug in Substitute where commas would not encode correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Aug 25, 2017
1 parent 33b606d commit d6705c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/operations/Cipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d6705c6

Please sign in to comment.