mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-22 02:33:58 +00:00
fix(MethodResolver): strip labels and line numbers so opcode patterns match
This commit is contained in:
@@ -38,7 +38,8 @@ private class NodeStringBuilder {
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
if (sb.isEmpty()) return ""
|
||||
val s = sb.toString()
|
||||
return s.substring(0 until s.length - 2) // remove the last ", "
|
||||
return s.substring(0 .. (s.length - 2).coerceAtLeast(0)) // remove the last ", "
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user