From 443d8fc41cab405dbdd967ef7eb86f520517280f Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 20 Jan 2022 15:21:04 +0530 Subject: chore(ext/console): update ansi-regex (#13435) --- ext/console/01_colors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/console') 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", ); -- cgit v1.2.3