mirror of
https://github.com/gchq/CyberChef.git
synced 2026-03-18 04:41:40 -07:00
Add a failing test for "javascript escaped" ansi escape codes
This commit is contained in:
parent
3e10d20fbf
commit
aae935d3ea
1 changed files with 23 additions and 1 deletions
|
|
@ -41,5 +41,27 @@ TestRegister.addTests([
|
|||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Remove ANSI Escape Codes: text containing javascript escape representation of ansi escape codes",
|
||||
// input/output expressed in hex to avoid accidental interpretation of Javascript escapes and to make the test case explicit
|
||||
"input": "5c 30 33 33 5b 33 32 3b 31 3b 33 3b 34 3b 39 6d 48 65 6c 6c 6f 2c 20 5c 30 33 33 5b 33 32 3b 31 3b 33 3b 34 3b 39 6d 57 6f 72 6c 64 21",
|
||||
"expectedOutput": "5c 30 33 33 5b 33 32 3b 31 3b 33 3b 34 3b 39 6d 48 65 6c 6c 6f 2c 20 5c 30 33 33 5b 33 32 3b 31 3b 33 3b 34 3b 39 6d 57 6f 72 6c 64 21",
|
||||
"recipeConfig": [
|
||||
{
|
||||
"op": "From Hex",
|
||||
"args": ["Auto"]
|
||||
},
|
||||
{
|
||||
"op": "Remove ANSI Escape Codes",
|
||||
"args": []
|
||||
},
|
||||
{
|
||||
"op": "To Hex",
|
||||
"args": ["Space", 0]
|
||||
}
|
||||
],
|
||||
},
|
||||
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue