Skip to content

Commit

Permalink
fix: check if fingerprint string is substring of any string references
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Dec 18, 2022
1 parent c391ca6 commit c5de9e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5de9e2

Please sign in to comment.