Skip to content

Commit

Permalink
Don't trim relContentDir
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Jun 26, 2023
1 parent 4976674 commit 2f3bf68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,6 @@ const UnexpectedLookupMapError = new AstroError({

function globWithUnderscoresIgnored(relContentDir: string, exts: string[]): string[] {
const extGlob = getExtGlob(exts);
const contentDir = appendForwardSlash(relContentDir.trim());
const contentDir = appendForwardSlash(relContentDir);
return [`${contentDir}**/*${extGlob}`, `!${contentDir}_*/**${extGlob}`, `!${contentDir}_*${extGlob}`];
}

0 comments on commit 2f3bf68

Please sign in to comment.