Skip to content

Commit 554218a

Browse files
committed
fix(module): ignore leading slash on source prefix check
1 parent b9eb292 commit 554218a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/src/runtime/utils/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getCollectionSourceById(id: string, sources: ResolvedCollectionS
3333
let fsPath
3434
const [fixPart] = source.include.includes('*') ? source.include.split('*') : ['', source.include]
3535
const fixed = withoutTrailingSlash(withoutLeadingSlash(fixPart || '/'))
36-
if (fixed === prefix) {
36+
if (withoutLeadingSlash(fixed) === withoutLeadingSlash(prefix)) {
3737
fsPath = prefixAndPath
3838
}
3939
else {

0 commit comments

Comments
 (0)