Skip to content

Commit 2336be0

Browse files
committed
build: update lint ignore to biome in xterm-test-helpers.ts
Switch the lint ignore directive from ESLint to Biome syntax for the control characters regex in the stripAnsi function.
1 parent 57c3659 commit 2336be0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/e2e/xterm-test-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const waitForTerminalRegex = async (
102102
// Browser-compatible stripAnsi implementation
103103
function stripAnsi(str: string): string {
104104
return str.replace(
105-
// eslint-disable-next-line no-control-regex
105+
// biome-ignore lint/suspicious/noControlCharactersInRegex: Intentional control characters for ANSI escape sequence stripping
106106
/[\u001B\u009B][[()#;?]*(?:(?:[a-zA-Z\d]*(?:;[a-zA-Z\d]*)*)?\u0007|(?:\d{1,4}(?:;\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])/g,
107107
''
108108
)

0 commit comments

Comments
 (0)