Commit 4de7b03
lib: refactor bootstrap_node.js regular expression
* use `+` instead of `*` where one-or-more is required
* switch from String.prototype.match() to RegExp.prototype.test()
PR-URL: #10749
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Jackson Tian <shyvo1987@gmail.com>1 parent 06acf88 commit 4de7b03Copy full SHA for 4de7b03
File tree
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Filter options
- lib/internal
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap_node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap_node.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
393 | 393 | |
394 | 394 | |
395 | 395 | |
396 | | - |
397 | | - |
398 | | - |
| 396 | + |
399 | 397 | |
400 | 398 | |
401 | 399 | |
|
0 commit comments