diff --git a/src/main/java/org/cadixdev/mercury/mixin/annotation/InjectTarget.java b/src/main/java/org/cadixdev/mercury/mixin/annotation/InjectTarget.java index b6cabde..ff3cbb4 100644 --- a/src/main/java/org/cadixdev/mercury/mixin/annotation/InjectTarget.java +++ b/src/main/java/org/cadixdev/mercury/mixin/annotation/InjectTarget.java @@ -21,7 +21,7 @@ * @since 0.1.0 */ public class InjectTarget { - public static final Pattern FULL_REF_PATTERN = Pattern.compile("([\\w_$/]+)\\.(.*)(\\(.*?\\).+)|L([\\w_$/]+);(.*)(\\(.*?\\).+)"); + public static final Pattern FULL_REF_PATTERN = Pattern.compile("L?([\\w_$/]+)[.;](.*)(\\(.*?\\).+)"); private final String ownerName; private final String targetName;