feishin/src/renderer/utils/normalize-server-url.ts

5 lines
136 B
TypeScript
Raw Normal View History

2022-12-19 15:59:14 -08:00
export const normalizeServerUrl = (url: string) => {
// Remove trailing slash
return url.endsWith('/') ? url.slice(0, -1) : url;
};