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 d2c21a3 commit c5850b8Copy full SHA for c5850b8
packages/entries/src/utils.ts
@@ -1,7 +1,9 @@
1
import path from 'upath';
2
3
export function normalizeRoutePath(routePath: string) {
4
- return path.normalize('/' + routePath.replace(/\/+$/, ''));
+ return path.normalize(
5
+ '/' + routePath.replace(/^\/+/, '').replace(/\/+$/, '')
6
+ );
7
}
8
9
/**
0 commit comments