mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-19 13:59:19 +00:00
Fix: Parsing clipboard's content for repo URI (closes #244)
This commit is contained in:
@ -66,13 +66,14 @@ data class Repository(
|
||||
|
||||
fun newRepository(
|
||||
address: String = "",
|
||||
fallbackName: String = "",
|
||||
fingerprint: String = "",
|
||||
authentication: String = "",
|
||||
): Repository {
|
||||
val name = try {
|
||||
URL(address).let { "${it.host}${it.path}" }
|
||||
} catch (e: Exception) {
|
||||
address
|
||||
fallbackName
|
||||
}
|
||||
return Repository(
|
||||
address = address,
|
||||
|
Reference in New Issue
Block a user