refactor: normalize channel capabilities typing

This commit is contained in:
Peter Steinberger committed 2026-01-17 08:06:35 +00:00
1 parent 1a4fc8dea6
commit e6477363e9
3 files changed
+22 -17

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
// eslint-disable-next-line no-control-regex
const DSR_PATTERN = /\x1b\[\??6n/g;
const ESC = String.fromCharCode(0x1b);
const DSR_PATTERN = new RegExp(`${ESC}\\[\\??6n`, "g");
export function stripDsrRequests(input: string): { cleaned: string; requests: number } {
let requests = 0;