Skip to content

Commit c407eef

Browse files
committed
refactor(removeTrailingSlash): move to core/utils
Signed-off-by: J3m5 <5523410+J3m5@users.noreply.github.com>
1 parent 5c049b5 commit c407eef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)