diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt index f446b5b..a74800c 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt @@ -109,7 +109,7 @@ abstract class MethodFingerprint( if (instruction.opcode.ordinal != Opcode.CONST_STRING.ordinal) return@forEachIndexed val string = ((instruction as ReferenceInstruction).reference as StringReference).string - val index = stringsList.indexOfFirst { it == string } + val index = stringsList.indexOfFirst(string::contains) if (index == -1) return@forEachIndexed add( diff --git a/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt b/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt index f836b74..51fced4 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt @@ -14,7 +14,7 @@ import kotlin.reflect.KClass annotation class Patch(val include: Boolean = true) /** - * Annotation for dependencies of [Patch]es . + * Annotation for dependencies of [Patch]es. */ @Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME)