We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a7b29 commit 8e61a1fCopy full SHA for 8e61a1f
lib/internal/util/inspect.js
@@ -246,8 +246,8 @@ const meta = [
246
// Matches all ansi escape code sequences in a string
247
const ansiPattern = '[\\u001B\\u009B][[\\]()#;?]*' +
248
'(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*' +
249
- '|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)' +
250
- '|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))';
+ '|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))' +
+ '|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))';
251
const ansi = new RegExp(ansiPattern, 'g');
252
253
let getStringWidth;
0 commit comments