From 40237989fbd905ae2258b7f2b28114ec05c99c97 Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Mon, 26 Aug 2024 11:50:15 -0400 Subject: [PATCH] Don't use octal escape sequences in regression TypeScript doesn't all octal escape sequences anymore. Use hex representation instead. --- regression/run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {