Skip to content

Commit 9e368c1

Browse files
authored
Merge pull request #35 from Finholt/fix-recursive-scanning
Fix issue with scanning subfolders if ignoreDirectories is not used
2 parents 040c60a + 0670bbd commit 9e368c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/pluginCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const findHtmlFiles = async function (fileAndDirPath, directoryFilter) {
5656
if (await isDirectory(fileAndDirPath)) {
5757
const fileInfos = await readdirp.promise(fileAndDirPath, {
5858
fileFilter: '*.html',
59-
directoryFilter
59+
directoryFilter: !!directoryFilter.length ? directoryFilter : '*'
6060
})
6161
return fileInfos.map(({ fullPath }) => fullPath)
6262
}

0 commit comments

Comments
 (0)