mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Nimegami: added Videogami
This commit is contained in:
parent
c4de07abb3
commit
25ab02c476
4 changed files with 24 additions and 10 deletions
|
@ -1065,9 +1065,9 @@ fun vidsrctoDecrypt(text: String): String {
|
|||
}
|
||||
|
||||
fun String?.createSlug(): String? {
|
||||
return this?.replace(Regex("[^\\w\\s-]"), "")
|
||||
?.replace(" ", "-")
|
||||
?.replace(Regex("( – )|( -)|(- )|(--)"), "-")
|
||||
return this?.filter { it.isWhitespace() || it.isLetterOrDigit() }
|
||||
?.trim()
|
||||
?.replace("\\s+".toRegex(), "-")
|
||||
?.lowercase()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue