From 02f95e4ef5d6e528cd6fd1cc16877517d7a25981 Mon Sep 17 00:00:00 2001 From: Mathu-lmn <80094438+Mathu-lmn@users.noreply.github.com> Date: Mon, 29 Jul 2024 00:26:08 +0200 Subject: [PATCH] fix(regex): test --- src/realms/rest/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realms/rest/emitter.ts b/src/realms/rest/emitter.ts index c4b1096..71f3407 100644 --- a/src/realms/rest/emitter.ts +++ b/src/realms/rest/emitter.ts @@ -92,7 +92,7 @@ export const emitterMessage = Type.Union( export type EmitterMessage = Static // eslint-disable-next-line no-control-regex -const ANSI_ESCAPE = /\x1b\[[0-9;]*m/g; +const ANSI_ESCAPE = /\x1b\[*m/g; function removeAnsiColorCodes(str: string):string { return str.replace(ANSI_ESCAPE, "");