Skip to content

Commit 6494ccf

Browse files
committed
fix: properly hide md extension
close #873
1 parent 89d1ca5 commit 6494ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function splitRemoteBranch(
150150

151151
export function getDisplayPath(path: string): string {
152152
if (path.endsWith("/")) return path;
153-
return path.split("/").last()!.replace(".md", "");
153+
return path.split("/").last()!.replace(/\.md$/, "");
154154
}
155155

156156
export function formatMinutes(minutes: number): string {

0 commit comments

Comments
 (0)