oops forgor \ this time

This commit is contained in:
Cloudburst 2022-10-31 12:49:00 +01:00 committed by GitHub
parent 8406f6de65
commit e72f3ff8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,8 @@ object RepositoryManager {
val fixedUrl = url.trim()
return if (fixedUrl.contains("^https?://".toRegex())) {
fixedUrl
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex())) {
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex(), "").let {
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex())) {
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex(), "").let {
return@let if (!it.contains("^https?://".toRegex()))
"https://${it}"
else fixedUrl
@ -213,4 +213,4 @@ object RepositoryManager {
output.write(dataBuffer, 0, readBytes)
}
}
}
}