Skip to content

Commit fb8225f

Browse files
committed
fix module reader not picking up dollar signs
1 parent be0c849 commit fb8225f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

prism-core/src/main/java/io/avaje/prism/internal/ModuleInfoReaderWriter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ public static void write(PrintWriter out, String packageName) {
4242
+ "public class ModuleInfoReader {\n"
4343
+ "\n"
4444
+ " private static final String SPLIT_PATTERN = \"\\\\s*,\\\\s*\";\n"
45-
+ " private static final Pattern IMPORT_PATTERN = Pattern.compile(\"import\\\\s+([\\\\w.]+);\");\n"
45+
+ " private static final Pattern IMPORT_PATTERN = Pattern.compile(\"import\\\\s+([\\\\w.$]+);\");\n"
4646
+ " private static final Pattern REQUIRES_PATTERN =\n"
47-
+ " Pattern.compile(\"requires\\\\s+(transitive\\\\s+)?(static\\\\s+)?([\\\\w.]+);\");\n"
47+
+ " Pattern.compile(\"requires\\\\s+(transitive\\\\s+)?(static\\\\s+)?([\\\\w.$]+);\");\n"
4848
+ " private static final Pattern PROVIDES_PATTERN =\n"
49-
+ " Pattern.compile(\"provides\\\\s+([\\\\w.]+)\\\\s+with\\\\s+([\\\\w.,\\\\s]+);\");\n"
49+
+ " Pattern.compile(\"provides\\\\s+([\\\\w.$]+)\\\\s+with\\\\s+([\\\\w.$,\\\\s]+);\");\n"
5050
+ " private static final Pattern OPENS_PATTERN =\n"
51-
+ " Pattern.compile(\"opens\\\\s+([\\\\w.]+)\\\\s+to\\\\s+([\\\\w.,\\\\s]+);\");\n"
51+
+ " Pattern.compile(\"opens\\\\s+([\\\\w.$]+)\\\\s+to\\\\s+([\\\\w.$,\\\\s]+);\");\n"
5252
+ " private static final Pattern EXPORTS_PATTERN =\n"
53-
+ " Pattern.compile(\"exports\\\\s+([\\\\w.]+)\\\\s+to\\\\s+([\\\\w.,\\\\s]+);\");\n"
54-
+ " private static final Pattern USES_PATTERN = Pattern.compile(\"uses\\\\s+([\\\\w.]+);\");\n"
53+
+ " Pattern.compile(\"exports\\\\s+([\\\\w.$]+)\\\\s+to\\\\s+([\\\\w.$,\\\\s]+);\");\n"
54+
+ " private static final Pattern USES_PATTERN = Pattern.compile(\"uses\\\\s+([\\\\w.$]+);\");\n"
5555
+ "\n"
5656
+ " private final List<Requires> requires = new ArrayList<>();\n"
5757
+ " private final List<Uses> uses = new ArrayList<>();\n"

0 commit comments

Comments
 (0)