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;
|
output = char;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch (outArg) {
|
if (output == char) {
|
||||||
case "Remove":
|
result += output;
|
||||||
break;
|
} else {
|
||||||
case "Replace with '.'":
|
switch (outArg) {
|
||||||
result += ".";
|
case "Remove":
|
||||||
break;
|
break;
|
||||||
default: { // Escape & no change are the same
|
case "Replace with '.'":
|
||||||
result += output;
|
result += ".";
|
||||||
|
break;
|
||||||
|
default: { // Escape & no change are the same
|
||||||
|
result += output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue