mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
5 lines
136 B
TypeScript
5 lines
136 B
TypeScript
|
|
export const normalizeServerUrl = (url: string) => {
|
||
|
|
// Remove trailing slash
|
||
|
|
return url.endsWith('/') ? url.slice(0, -1) : url;
|
||
|
|
};
|