Add \e escape codes to remove ANSI escape codes operation

This commit is contained in:
Louis-Ladd 2026-01-04 17:58:35 -07:00
parent 53adbca9be
commit fe13f6401d

View file

@ -32,7 +32,7 @@ class RemoveANSIEscapeCodes extends Operation {
* @returns {string}
*/
run(input, args) {
const ansiRegex = /(?:\x1B|\\x1b|\\033|\\u001b)\[[0-?]*[ -/]*[@-~]/g;
const ansiRegex = /(?:\x1B|\\x1b|\\033|\\u001b|\\e)\[[0-?]*[ -/]*[@-~]/g;
return input.replace(ansiRegex, "");
}