Simplify regex in ExceptionTracingTransformer

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 6cc9ab9e3b
commit 161ff2cea8
  1. 4
      deob/src/main/java/dev/openrs2/deob/transform/ExceptionTracingTransformer.kt

@ -44,12 +44,12 @@ class ExceptionTracingTransformer : Transformer() {
private val CATCH_MATCHER = InsnMatcher.compile( private val CATCH_MATCHER = InsnMatcher.compile(
""" """
(ASTORE ALOAD)? (ASTORE ALOAD)?
(| LDC INVOKESTATIC | (LDC INVOKESTATIC |
NEW DUP NEW DUP
(LDC INVOKESPECIAL | INVOKESPECIAL LDC INVOKEVIRTUAL) (LDC INVOKESPECIAL | INVOKESPECIAL LDC INVOKEVIRTUAL)
((ILOAD | LLOAD | FLOAD | DLOAD | (ALOAD IFNULL LDC GOTO LDC) | BIPUSH | SIPUSH | LDC) INVOKEVIRTUAL)* ((ILOAD | LLOAD | FLOAD | DLOAD | (ALOAD IFNULL LDC GOTO LDC) | BIPUSH | SIPUSH | LDC) INVOKEVIRTUAL)*
INVOKEVIRTUAL INVOKESTATIC INVOKEVIRTUAL INVOKESTATIC
) )?
ATHROW ATHROW
""" """
) )

Loading…
Cancel
Save