Skip to content

Commit

Permalink
Update inferRoutePath.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Apr 17, 2024
1 parent 77b2a76 commit 6967766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/shared/src/utils/inferRoutePath.ts
@@ -1,3 +1,6 @@
/**
* Infer route path according to the given (markdown file) path
*/
export const inferRoutePath = (path: string): string => {
// if the pathname is empty or ends with `/`, return as is
if (!path || path.endsWith('/')) return path
Expand Down

0 comments on commit 6967766

Please sign in to comment.