Skip to content

Commit

Permalink
Update src/balena-utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Page- <[email protected]>
  • Loading branch information
klutchell and Page- authored Nov 24, 2023
1 parent 7303360 commit 0b0b7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/balena-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export async function finalize(releaseId: number): Promise<void> {

function stripAnsi(logLine: string): string {
return logLine.replace(
// eslint-disable-next-line no-control-regex
// eslint-disable-next-line no-control-regex -- We need to check for ansi control codes specifically
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,
'',
);
Expand Down

0 comments on commit 0b0b7ca

Please sign in to comment.