fix: bugfixes in microg

This commit is contained in:
oSumAtrIX
2022-05-26 03:47:11 +02:00
parent 7bc60943cb
commit a43b33bdbb
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
}