refactor: normalize channel capabilities typing
This commit is contained in:
1 parent
1a4fc8dea6
commit
e6477363e9
3 files changed
+22
-17
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user