Skip to content

Commit d727cf5

Browse files
committed
fixup!
1 parent 0d04c93 commit d727cf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/util/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ function highlightRegExp(regexpString) {
562562
write(start);
563563
writeDepth(seq, 1, 1);
564564
write(end);
565+
depth += decreaseDepth;
565566
} else {
566567
// The group is not closed which would lead to mistakes in the output.
567568
// This is a workaround to prevent output from being corrupted.
568569
writeDepth(start, 1, -seq.length);
569570
}
570-
depth += decreaseDepth;
571571
}
572572

573573
const write = (str) => {

0 commit comments

Comments
 (0)