forked from recloudstream/cloudstream
oops forgor \ this time
This commit is contained in:
parent
8406f6de65
commit
e72f3ff8b9
1 changed files with 3 additions and 3 deletions
|
@ -74,8 +74,8 @@ object RepositoryManager {
|
||||||
val fixedUrl = url.trim()
|
val fixedUrl = url.trim()
|
||||||
return if (fixedUrl.contains("^https?://".toRegex())) {
|
return if (fixedUrl.contains("^https?://".toRegex())) {
|
||||||
fixedUrl
|
fixedUrl
|
||||||
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex())) {
|
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex())) {
|
||||||
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex(), "").let {
|
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex(), "").let {
|
||||||
return@let if (!it.contains("^https?://".toRegex()))
|
return@let if (!it.contains("^https?://".toRegex()))
|
||||||
"https://${it}"
|
"https://${it}"
|
||||||
else fixedUrl
|
else fixedUrl
|
||||||
|
|
Loading…
Reference in a new issue