We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Qix-
Learn more about funding links in repositories.
Report abuse
1 parent 69bebf6 commit d9d806eCopy full SHA for d9d806e
fixtures/ansi-codes.js
@@ -227,5 +227,5 @@ exports.urxvt = new Map([
227
['[3;5;606t', ['URxvt.keysym.C-M-y']],
228
['[3;1605;5t', ['URxvt.keysym.C-M-e']],
229
['[3;1605;606t', ['URxvt.keysym.C-M-c']],
230
- [']710;9x15bold\x07', ['URxvt.keysym.font']]
+ [']710;9x15bold\u0007', ['URxvt.keysym.font']]
231
]);
index.js
@@ -2,8 +2,8 @@
2
3
module.exports = () => {
4
const pattern = [
5
- '[\\u001b\\u009b][[\\]()#;?]*(?:(?:(?:[a-zA-Z0-9]*(?:;[a-zA-Z0-9]*)*)?\\x07)',
6
- '(?:(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-ntqry=><~]))'
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)',
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))'
7
].join('|');
8
9
return new RegExp(pattern, 'g');
0 commit comments