Skip to content

Commit 6967766

Browse files
authored
Update inferRoutePath.ts
1 parent 77b2a76 commit 6967766

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/shared/src/utils/inferRoutePath.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Infer route path according to the given (markdown file) path
3+
*/
14
export const inferRoutePath = (path: string): string => {
25
// if the pathname is empty or ends with `/`, return as is
36
if (!path || path.endsWith('/')) return path

0 commit comments

Comments
 (0)