refactor: normalize channel capabilities typing
This commit is contained in:
@@ -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