We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc3acb0 + ca617df commit 1d4ffdaCopy full SHA for 1d4ffda
src/node/util.ts
@@ -20,7 +20,7 @@ export interface Paths {
20
21
// From https://github.com/chalk/ansi-regex
22
const pattern = [
23
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
24
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",
25
].join("|")
26
const re = new RegExp(pattern, "g")
0 commit comments