Skip to content

Commit

Permalink
Merge branch 'placeholder-api' of https://github.com/Xujiayao/Discord…
Browse files Browse the repository at this point in the history
…-MC-Chat into placeholder-api
  • Loading branch information
Xujiayao committed Jul 9, 2024
2 parents ca656ef + baca9c1 commit 46c4359
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 46c4359

Please sign in to comment.