fix(desktop): remove split operation in serverDisplayName function (#7397)
This commit is contained in:
@@ -19,7 +19,6 @@ export function serverDisplayName(url: string) {
|
|||||||
return url
|
return url
|
||||||
.replace(/^https?:\/\//, "")
|
.replace(/^https?:\/\//, "")
|
||||||
.replace(/\/+$/, "")
|
.replace(/\/+$/, "")
|
||||||
.split("/")[0]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function projectsKey(url: string) {
|
function projectsKey(url: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user