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 b814c3a commit 81c87d0Copy full SHA for 81c87d0
src/runtime/utils/formatter.ts
@@ -1,3 +1,3 @@
1
export function trimTrailingSlash(path: string): string {
2
- return path.replace(/\/$/, '');
+ return path.replace(/(?<!^)\/$/, '');
3
}
0 commit comments