mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
Correct output
This commit is contained in:
parent
46d40e961d
commit
e3ff47000a
1 changed files with 12 additions and 8 deletions
|
@ -127,14 +127,18 @@ class EscapeSmartCharacters extends Operation {
|
|||
output = char;
|
||||
}
|
||||
}
|
||||
switch (outArg) {
|
||||
case "Remove":
|
||||
break;
|
||||
case "Replace with '.'":
|
||||
result += ".";
|
||||
break;
|
||||
default: { // Escape & no change are the same
|
||||
result += output;
|
||||
if (output == char) {
|
||||
result += output;
|
||||
} else {
|
||||
switch (outArg) {
|
||||
case "Remove":
|
||||
break;
|
||||
case "Replace with '.'":
|
||||
result += ".";
|
||||
break;
|
||||
default: { // Escape & no change are the same
|
||||
result += output;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue