mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
08fa378e28
commit
dd4da22ab0
2 changed files with 36 additions and 7 deletions
|
|
@ -899,9 +899,9 @@ fun Headers.getGomoviesCookies(cookieKey: String = "set-cookie"): Map<String, St
|
|||
|
||||
fun String?.createSlug(): String? {
|
||||
return this?.replace(Regex("[^\\w\\s]"), "")
|
||||
?.replace(Regex("( – )|( -)|(- )"), "-")
|
||||
?.replace("--", "-")
|
||||
?.replace(" ", "-")?.lowercase()
|
||||
?.replace(" ", "-")
|
||||
?.replace(Regex("( – )|( -)|(- )|(--)"), "-")
|
||||
?.lowercase()
|
||||
}
|
||||
|
||||
fun getLanguage(str: String): String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue