mirror of
https://github.com/gchq/CyberChef
synced 2025-01-13 04:58:49 +00:00
Fixed bug in Substitute where commas would not encode correctly
This commit is contained in:
parent
33b606d48f
commit
d6705c682f
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
let plaintext = Utils.expandAlphRange(args[0]).join(""),
|
||||||
ciphertext = Utils.expandAlphRange(args[1]).join(),
|
ciphertext = Utils.expandAlphRange(args[1]).join(""),
|
||||||
output = "",
|
output = "",
|
||||||
index = -1;
|
index = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue