summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-01-20 15:21:04 +0530
committerGitHub <noreply@github.com>2022-01-20 15:21:04 +0530
commit443d8fc41cab405dbdd967ef7eb86f520517280f (patch)
tree8f3c83995abb32b3c37a50125935553a9ac1f3e0
parent4c1053ad33cad119569acca7d63f5544e025a880 (diff)
chore(ext/console): update ansi-regex (#13435)
-rw-r--r--ext/console/01_colors.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/console/01_colors.js b/ext/console/01_colors.js
index 42551963c..db09b0e43 100644
--- a/ext/console/01_colors.js
+++ b/ext/console/01_colors.js
@@ -75,11 +75,11 @@
return run(str, code(35, 39));
}
- // https://github.com/chalk/ansi-regex/blob/2b56fb0c7a07108e5b54241e8faec160d393aedb/index.js
+ // https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
const ANSI_PATTERN = new RegExp(
ArrayPrototypeJoin([
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))",
], "|"),
"g",
);