Skip to content

Commit 6b98055

Browse files
committed
fix: better module-info.class detection in regex helper
1 parent 0521b0a commit 6b98055

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/falsepattern/falsetweaks/modules/startup/RegexHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public static boolean classFileRegex(String toMatch) {
3131
return toMatch.endsWith(".class") &&
3232
!toMatch.startsWith("$") &&
3333
!toMatch.endsWith("$.class") &&
34-
!toMatch.equals("module-info.class");
34+
!toMatch.equals("module-info.class") &&
35+
!toMatch.endsWith("/module-info.class");
3536
}
3637

3738
public static boolean modClassRegex(String toMatch) {

0 commit comments

Comments
 (0)