Skip to content

Commit 8e6a314

Browse files
committed
fix: hopefully stop illegal group reference exceptions
1 parent 671fe10 commit 8e6a314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/me/anutley/dislink/common/delivery/sender/MessageSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ protected String replaceDefaultMessagePlaceholders(String format) {
321321
format = replaceGuildPlaceholders(format, "origin", originChannel());
322322
format = replaceGuildPlaceholders(format, "destination", destinationChannel());
323323

324-
format = format.replaceAll("%message%", message.getContentRaw());
324+
format = format.replaceAll("%message%", Matcher.quoteReplacement(message.getContentRaw()));
325325

326326
Matcher match = Pattern.compile("%.+%").matcher(format);
327327

0 commit comments

Comments
 (0)