fix: bugfixes in microg
This commit is contained in:
parent
7bc60943cb
commit
a43b33bdbb
2 changed files with 38 additions and 34 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue