fix: bugfixes in microg

This commit is contained in:
oSumAtrIX 2022-05-26 03:47:11 +02:00
parent 017bcfa04d
commit f4e289c8df
2 changed files with 38 additions and 34 deletions

View file

@ -18,5 +18,13 @@ internal fun String.startsWithAny(vararg prefix: String): Boolean {
if (this.startsWith(_prefix))
return true
return false
}
internal fun String.containsAny(vararg others: String): Boolean {
for (other in others)
if (this.contains(other))
return true
return false
}