Make first character in derived name uppercase, for ...aesthetics.
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ class MediaServersViewModel : ViewModel() {
|
|||||||
}
|
}
|
||||||
val serverNameReference =
|
val serverNameReference =
|
||||||
try {
|
try {
|
||||||
URIReference.parse(normalizedUrl).host.value
|
URIReference.parse(normalizedUrl).host.value.replaceFirstChar { it.uppercase() }
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
normalizedUrl.replaceFirstChar { it.uppercase() }
|
normalizedUrl.replaceFirstChar { it.uppercase() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user