Skip to content

Commit 6777344

Browse files
committed
fix: broken module-info.class detection
1 parent 3acbfd4 commit 6777344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/falsepattern/lib/internal/asm/transformers/TypeDiscovererModuleInfoSilencer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public boolean transformClass(@NotNull String className, @NotNull ClassNodeHandl
6060
if (insn instanceof LdcInsnNode) {
6161
val ldc = (LdcInsnNode) insn;
6262
if (ldc.cst.equals("[^\\s\\$]+(\\$[^\\s]+)?\\.class$")) {
63-
ldc.cst = "(?!module-info)[^\\s\\$]+(\\$[^\\s]+)?\\.class$";
63+
ldc.cst = "[^\\s\\$]+(?<!module-info)(\\$[^\\s]+)?\\.class$";
6464
return true;
6565
}
6666
}

0 commit comments

Comments
 (0)