We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ignoreDirectories
1 parent 510d339 commit 0668084Copy full SHA for 0668084
src/pluginCore.js
@@ -50,8 +50,8 @@ exports.generateFilePaths = async function ({
50
ignoreDirectories.length === 0
51
? ASTERISK
52
: ignoreDirectories.map(
53
- // add ! and strip leading slash
54
- (dir) => `!${dir.replace(/^\/+/, '')}`,
+ // add ! and strip leading and trailing slashes
+ (dir) => `!${dir.replace(/^\/|\/$/g, '')}`,
55
)
56
const htmlFilePaths = await Promise.all(
57
fileAndDirPaths.map((fileAndDirPath) => findHtmlFiles(`${publishDir}${fileAndDirPath}`, directoryFilter)),
0 commit comments