File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
44
"node/no-unsupported-features/es-syntax" : " off" ,
45
45
"promise/prefer-await-to-callbacks" : " off" ,
46
46
// enable once supported in all our supported node versions.
47
- "unicorn/prefer-node-protocol" : " off"
47
+ "unicorn/prefer-node-protocol" : " off" ,
48
+ // only available for node >= 16
49
+ "unicorn/prefer-string-replace-all" : " off"
48
50
},
49
51
"overrides" : [
50
52
// Top level files.
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ function accessorPatternMatch(
216
216
)
217
217
: // Text matches pattern?
218
218
new RegExp (
219
- `^${ escapeRegExp ( pattern ) . replaceAll ( "\\*" , ".*" ) } $` ,
219
+ `^${ escapeRegExp ( pattern ) . replace ( / \\ \* / gu , ".*" ) } $` ,
220
220
"u"
221
221
) . test ( textParts [ 0 ] ) &&
222
222
accessorPatternMatch (
You can’t perform that action at this time.
0 commit comments