We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b2a76 commit 6967766Copy full SHA for 6967766
packages/shared/src/utils/inferRoutePath.ts
@@ -1,3 +1,6 @@
1
+/**
2
+ * Infer route path according to the given (markdown file) path
3
+ */
4
export const inferRoutePath = (path: string): string => {
5
// if the pathname is empty or ends with `/`, return as is
6
if (!path || path.endsWith('/')) return path
0 commit comments