Skip to content

Commit

Permalink
fix(regex): test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathu-lmn committed Jul 28, 2024
1 parent 891a1ad commit 02f95e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realms/rest/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const emitterMessage = Type.Union(
export type EmitterMessage = Static<typeof emitterMessage>

// 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, "");
Expand Down

0 comments on commit 02f95e4

Please sign in to comment.