File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ const {
34
34
SymbolIterator,
35
35
SymbolToStringTag,
36
36
decodeURIComponent,
37
- hardenRegExp,
38
37
} = primordials ;
39
38
40
39
const { inspect } = require ( 'internal/util/inspect' ) ;
@@ -117,7 +116,7 @@ const {
117
116
revokeDataObject,
118
117
} = internalBinding ( 'blob' ) ;
119
118
120
- const FORWARD_SLASH = hardenRegExp ( / \/ / g) ;
119
+ const FORWARD_SLASH = / \/ / g;
121
120
122
121
const context = Symbol ( 'context' ) ;
123
122
const cannotBeBase = Symbol ( 'cannot-be-base' ) ;
@@ -1505,11 +1504,11 @@ function fileURLToPath(path) {
1505
1504
// - CR: The carriage return character is also stripped out by the `pathname`
1506
1505
// setter.
1507
1506
// - TAB: The tab character is also stripped out by the `pathname` setter.
1508
- const percentRegEx = hardenRegExp ( / % / g) ;
1509
- const backslashRegEx = hardenRegExp ( / \\ / g) ;
1510
- const newlineRegEx = hardenRegExp ( / \n / g) ;
1511
- const carriageReturnRegEx = hardenRegExp ( / \r / g) ;
1512
- const tabRegEx = hardenRegExp ( / \t / g) ;
1507
+ const percentRegEx = / % / g;
1508
+ const backslashRegEx = / \\ / g;
1509
+ const newlineRegEx = / \n / g;
1510
+ const carriageReturnRegEx = / \r / g;
1511
+ const tabRegEx = / \t / g;
1513
1512
1514
1513
function encodePathChars ( filepath ) {
1515
1514
if ( StringPrototypeIncludes ( filepath , '%' ) )
You can’t perform that action at this time.
0 commit comments