We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8178bec commit 515e35aCopy full SHA for 515e35a
1 file changed
packages/markdown-db/src/markdown-db.engine.ts
@@ -160,7 +160,9 @@ export class MarkdownDb<
160
*/
161
public computeEntryId(mdFile: FsFile) {
162
const relativePath = mdFile.dir().relativePathFrom(this._config.cwd);
163
- const dirPath = relativePath.split("/");
+ // Normalize path separators to forward slashes for consistent splitting across platforms
164
+ const normalizedPath = relativePath.replace(/\\/g, "/");
165
+ const dirPath = normalizedPath.split("/");
166
const lastFolderName = dirPath.pop();
167
let fileName = mdFile.fileNameWithoutExtension();
168
0 commit comments