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 f4164fa commit 66d3101Copy full SHA for 66d3101
lib/internal/util/inspect.js
@@ -223,7 +223,8 @@ const meta = [
223
// License: MIT, authors: @sindresorhus, Qix-, arjunmehta and LitoMore
224
// Matches all ansi escape code sequences in a string
225
const ansiPattern = '[\\u001B\\u009B][[\\]()#;?]*' +
226
- '(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)' +
+ '(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*' +
227
+ '|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)' +
228
'|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))';
229
const ansi = new RegExp(ansiPattern, 'g');
230
0 commit comments