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 bacd1a7 commit 911e04cCopy full SHA for 911e04c
lib/internal/util/inspect.js
@@ -3039,8 +3039,8 @@ function stripVTControlCharacters(str) {
3039
// Short-circuit: all ANSI escape sequences start with either
3040
// ESC (\u001B, 7-bit) or CSI (\u009B, 8-bit) introducer.
3041
// If neither is present, the string has no VT control characters.
3042
- if (!StringPrototypeIncludes(str, '\u001B') &&
3043
- !StringPrototypeIncludes(str, '\u009B'))
+ if (StringPrototypeIndexOf(str, '\u001B') === -1 &&
+ StringPrototypeIndexOf(str, '\u009B') === -1)
3044
return str;
3045
3046
return RegExpPrototypeSymbolReplace(ansi, str, '');
0 commit comments