Skip to content

Commit d53e280

Browse files
yuito-itCopilot
andauthored
Update src/lib/file-system-repo.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c8e8a16 commit d53e280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/file-system-repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class FileSystemRepo {
206206
}
207207

208208
private parseFilename(filename: string) {
209-
return filename.split(".md")[0];
209+
return filename.replace(/\.md$/, "");
210210
}
211211

212212
private getFilePath(uuid: string, remote: boolean = false) {

0 commit comments

Comments
 (0)