Skip to content

Commit 27cdec9

Browse files
committed
fix: skip file name when checking for folder content dirs
1 parent 87692c9 commit 27cdec9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/resolve/metadataResolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,9 @@ const parseAsFolderMetadataXml =
320320
if (parts.length > 1) {
321321
const folderContentTypesDirs = getFolderContentTypeDirNames(registry);
322322
// check if the path contains a folder content name as a directory
323+
const pathWithoutFile = parts.slice(0, -1);
323324
folderContentTypesDirs.some((dirName) => {
324-
if (parts.includes(dirName)) {
325+
if (pathWithoutFile.includes(dirName)) {
325326
folderName = dirName;
326327
}
327328
});

0 commit comments

Comments
 (0)