Skip to content

Commit

Permalink
Merge pull request #33 from efrei-craft/dev
Browse files Browse the repository at this point in the history
fix(regex): test
  • Loading branch information
JiveOff authored Jul 28, 2024
2 parents fc6d9a1 + 02f95e4 commit 1ee4e52
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 1ee4e52

Please sign in to comment.