Improve opaque predicate regex in PlatformDetectionTransformer

bzip2
Graham 5 years ago
parent c692a17bc9
commit dcfaedcd2f
  1. 2
      bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt

@ -163,7 +163,7 @@ class PlatformDetectionTransformer : Transformer() {
""" """
) )
private val MISC_PLATFORM_DETECT_MATCHER = private val MISC_PLATFORM_DETECT_MATCHER =
InsnMatcher.compile("ICONST ISTORE (ILOAD IFEQ | GOTO) ICONST ISTORE") InsnMatcher.compile("ICONST ISTORE ((GETSTATIC | ILOAD) IFEQ | GOTO) ICONST ISTORE")
private val OS_NAMES = listOf("win", "mac", "linux") private val OS_NAMES = listOf("win", "mac", "linux")
private val STARTS_WITH = MemberRef("java/lang/String", "startsWith", "(Ljava/lang/String;)Z") private val STARTS_WITH = MemberRef("java/lang/String", "startsWith", "(Ljava/lang/String;)Z")

Loading…
Cancel
Save