Skip to content

Commit

Permalink
refactor(lib/find-plugins): replace regexp .exec() with .test() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent 64e1641 commit ffffccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function processIndexDirEntryIfExists (pluginTree, { opts, dirEntries, dir, pref

async function processDirContents (pluginTree, { dirEntries, opts, indexDirEntry, prefix, dir, depth, currentDirHooks }) {
for (const dirEntry of dirEntries) {
if (opts.ignorePattern && RegExp(opts.ignorePattern).exec(dirEntry.name)) {
if (opts.ignorePattern && RegExp(opts.ignorePattern).test(dirEntry.name)) {
continue
}

Expand Down

0 comments on commit ffffccf

Please sign in to comment.