This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
feishin/src/renderer/utils/normalize-server-url.ts
2022-12-19 17:44:40 -08:00

4 lines
136 B
TypeScript

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