diff --git a/lib/find-plugins.js b/lib/find-plugins.js index 631d870..88338de 100644 --- a/lib/find-plugins.js +++ b/lib/find-plugins.js @@ -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 }