mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
5 lines
140 B
TypeScript
5 lines
140 B
TypeScript
export const normalizeServerUrl = (url: string) => {
|
|
// Remove trailing slash
|
|
return url.endsWith('/') ? url.slice(0, -1) : url;
|
|
};
|