Skip to content

Commit

Permalink
fix: get rid of replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Sep 29, 2023
1 parent b594b12 commit 51b3149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/static/modules/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function isTestNameMatchFilters(testName, testNameFilter, strictMatchFilter) {
return true;
}

const filterRegExpStr = testNameFilter.replaceAll(' ', '(?: | › )');
const filterRegExpStr = testNameFilter.replace(/ /g, '(?: | › )');

return strictMatchFilter
? new RegExp(`^${filterRegExpStr}$`).test(testName)
Expand Down

0 comments on commit 51b3149

Please sign in to comment.