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 0d04c93 commit d727cf5Copy full SHA for d727cf5
1 file changed
lib/internal/util/inspect.js
@@ -562,12 +562,12 @@ function highlightRegExp(regexpString) {
562
write(start);
563
writeDepth(seq, 1, 1);
564
write(end);
565
+ depth += decreaseDepth;
566
} else {
567
// The group is not closed which would lead to mistakes in the output.
568
// This is a workaround to prevent output from being corrupted.
569
writeDepth(start, 1, -seq.length);
570
}
- depth += decreaseDepth;
571
572
573
const write = (str) => {
0 commit comments