Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a30bf55

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
lib: use focused ESLint disabling in util.js
Instead of disabling all ESLint rules for two lines that require a violation of no-control-regex, disable only the no-control-regex rule. PR-URL: #21041 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 261ef1d commit a30bf55
Copy full SHA for a30bf55

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎lib/util.js‎

Copy file name to clipboardExpand all lines: lib/util.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ const errorToString = Error.prototype.toString;
8787
let CIRCULAR_ERROR_MESSAGE;
8888
let internalDeepEqual;
8989

90-
/* eslint-disable */
90+
/* eslint-disable no-control-regex */
9191
const strEscapeSequencesRegExp = /[\x00-\x1f\x27\x5c]/;
9292
const strEscapeSequencesReplacer = /[\x00-\x1f\x27\x5c]/g;
93-
/* eslint-enable */
93+
/* eslint-enable no-control-regex */
94+
9495
const keyStrRegExp = /^[a-zA-Z_][a-zA-Z_0-9]*$/;
9596
const numberRegExp = /^(0|[1-9][0-9]*)$/;
9697

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.