Nimegami: added Videogami

This commit is contained in:
Olivia 2024-01-26 02:21:19 +07:00
parent c4de07abb3
commit 25ab02c476
4 changed files with 24 additions and 10 deletions

View file

@ -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()
}