diff --git a/src/main/kotlin/app/revanced/extensions/Extensions.kt b/src/main/kotlin/app/revanced/extensions/Extensions.kt index 7797d890..4a129074 100644 --- a/src/main/kotlin/app/revanced/extensions/Extensions.kt +++ b/src/main/kotlin/app/revanced/extensions/Extensions.kt @@ -19,9 +19,9 @@ internal fun Node.doRecursively(action: (Node) -> Unit) { for (i in 0 until this.childNodes.length) this.childNodes.item(i).doRecursively(action) } -internal fun String.startsWithAny(vararg prefix: String): Boolean { - for (_prefix in prefix) - if (this.startsWith(_prefix)) +internal fun String.startsWithAny(vararg prefixes: String): Boolean { + for (prefix in prefixes) + if (this.startsWith(prefix)) return true return false @@ -33,4 +33,4 @@ internal fun String.containsAny(vararg others: String): Boolean { return true return false -} \ No newline at end of file +}