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 5c049b5 commit c407eefCopy full SHA for c407eef
src/core/utils/removeTrailingSlash.ts
@@ -0,0 +1,7 @@
1
+export function removeTrailingSlash(url: string): string {
2
+ if (url.endsWith("/")) {
3
+ return url.slice(0, -1);
4
+ }
5
+
6
+ return url;
7
+}
0 commit comments