From dcfaedcd2fdabbe9b52079f92cd73fc38e56e07c Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 13 Jan 2020 09:31:12 +0000 Subject: [PATCH] Improve opaque predicate regex in PlatformDetectionTransformer --- .../openrs2/bundler/transform/PlatformDetectionTransformer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt b/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt index 3e1c6d6480..6cd9f6ca3b 100644 --- a/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt +++ b/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt @@ -163,7 +163,7 @@ class PlatformDetectionTransformer : Transformer() { """ ) 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 STARTS_WITH = MemberRef("java/lang/String", "startsWith", "(Ljava/lang/String;)Z")