Skip to content

Commit

Permalink
chore: fix compatibility with node 12 and 14
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Oct 17, 2021
1 parent 228a41d commit 4787bdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"node/no-unsupported-features/es-syntax": "off",
"promise/prefer-await-to-callbacks": "off",
// enable once supported in all our supported node versions.
"unicorn/prefer-node-protocol": "off"
"unicorn/prefer-node-protocol": "off",
// only available for node >= 16
"unicorn/prefer-string-replace-all": "off"
},
"overrides": [
// Top level files.
Expand Down
2 changes: 1 addition & 1 deletion src/common/ignore-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function accessorPatternMatch(
)
: // Text matches pattern?
new RegExp(
`^${escapeRegExp(pattern).replaceAll("\\*", ".*")}$`,
`^${escapeRegExp(pattern).replace(/\\\*/gu, ".*")}$`,
"u"
).test(textParts[0]) &&
accessorPatternMatch(
Expand Down

0 comments on commit 4787bdc

Please sign in to comment.