diff --git a/regression/run.ts b/regression/run.ts index adf6c6562..42e167987 100644 --- a/regression/run.ts +++ b/regression/run.ts @@ -499,9 +499,9 @@ async function generateDiff( // diffString returns console control characters, so convert those to useful html tags function prepareJsonChunk(jsonChunk: string): string { return jsonChunk - .replace(/\033\[32m/g, '') - .replace(/\033\[31m/g, '') - .replace(/\033\[39m/g, ''); + .replace(/\x1b\[32m/g, '') + .replace(/\x1b\[31m/g, '') + .replace(/\x1b\[39m/g, ''); } async function getFilesRecursive(dir: string): Promise {