Update Remove ANSI Escape Code regex to capture binary escapes
This commit is contained in:
parent
aae935d3ea
commit
e3a142fda2
@ -32,7 +32,7 @@ class RemoveANSIEscapeCodes extends Operation {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
const ansiRegex = /(?:\x1B|\\x1b|\\033|\\u001b|\\e)\[[0-?]*[ -/]*[@-~]/g;
|
const ansiRegex = /\x1B|[[0-?]*[ -/]*[@-~]/g;
|
||||||
return input.replace(ansiRegex, "");
|
return input.replace(ansiRegex, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user