Fix typo in Remove ANSI Escape Codes regex
This commit is contained in:
parent
ad30bae114
commit
31701832af
@ -32,7 +32,7 @@ class RemoveANSIEscapeCodes extends Operation {
|
||||
* @returns {string}
|
||||
*/
|
||||
run(input, args) {
|
||||
const ansiRegex = /\x1B|[[0-?]*[ -/]*[@-~]/g;
|
||||
const ansiRegex = /\x1B\[[0-?]*[ -/]*[@-~]/g;
|
||||
return input.replace(ansiRegex, "");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user