Files
feishin/src/renderer/utils/normalize-server-url.ts
T
2023-07-01 19:14:12 -07:00

5 lines
140 B
TypeScript

export const normalizeServerUrl = (url: string) => {
// Remove trailing slash
return url.endsWith('/') ? url.slice(0, -1) : url;
};