Skip to content

Commit

Permalink
Merge branch 'master' into placeholder-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Xujiayao authored Jul 9, 2024
2 parents a8cf687 + 7badbf6 commit baca9c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
public class ConsoleLogListener implements Runnable {

private static final Pattern formatPattern = Pattern.compile("§.");
private static final Pattern FORMAT_PATTERN = Pattern.compile("§.");
private static final Integer MAX_MESSAGE_LENGTH = 1900;
private boolean readFileHistory;

Expand Down Expand Up @@ -132,7 +132,7 @@ public void run() {
}

private void appendLine(StringBuilder messageBatch, String currentLine) {
currentLine = formatPattern.matcher(currentLine).replaceAll("");
currentLine = FORMAT_PATTERN.matcher(currentLine).replaceAll("");
currentLine = currentLine.replace("`", "");
messageBatch.append(currentLine.isEmpty() ? currentLine : ('`' + currentLine + '`'));
messageBatch.append("\n");
Expand Down

0 comments on commit baca9c1

Please sign in to comment.