diff --git a/packages/app/src/context/server.tsx b/packages/app/src/context/server.tsx index 4cfe9cc27..8945cd37e 100644 --- a/packages/app/src/context/server.tsx +++ b/packages/app/src/context/server.tsx @@ -16,9 +16,7 @@ export function normalizeServerUrl(input: string) { export function serverDisplayName(url: string) { if (!url) return "" - return url - .replace(/^https?:\/\//, "") - .replace(/\/+$/, "") + return url.replace(/^https?:\/\//, "").replace(/\/+$/, "") } function projectsKey(url: string) {