chore: fix lint issues

This commit is contained in:
FabianLars
2023-05-03 09:32:30 +02:00
parent 2184b72de0
commit 507cf43e82
5 changed files with 27 additions and 3 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ export async function attachConsole(): Promise<UnlistenFn> {
// Strip ANSI escape codes
const message = payload.message.replace(
// eslint-disable-next-line no-control-regex
// TODO: Investigate security/detect-unsafe-regex
// eslint-disable-next-line no-control-regex, security/detect-unsafe-regex
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,
""
);