We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb06c7 commit 9dcce0dCopy full SHA for 9dcce0d
src/common/java/net/minecraftforge/gradle/common/util/McpNames.java
@@ -197,8 +197,10 @@ private String getMapped(String srg) {
197
private String replaceInLine(String line) {
198
StringBuffer buf = new StringBuffer();
199
Matcher matcher = SRG_FINDER.matcher(line);
200
- while (matcher.find())
201
- matcher.appendReplacement(buf, getMapped(matcher.group()));
+ while (matcher.find()) {
+ // Since '$' is a valid character in identifiers, but we need to NOT treat this as a regex group, escape any occurrences
202
+ matcher.appendReplacement(buf, Matcher.quoteReplacement(getMapped(matcher.group())));
203
+ }
204
matcher.appendTail(buf);
205
return buf.toString();
206
}
0 commit comments