Skip to content

Commit

Permalink
Fix replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboy9921 committed Jan 8, 2022
1 parent 4f8ced2 commit 3097bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/mattlabs/crewchat/util/MessageUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static ArrayList<Player> getMentionedPlayers(String message, ArrayList<Pl

// Parses strings for unescaped single quotes (') and escapes them
public static String escapeSingleQuotes(String message) {
return message.replaceAll("/(?<!\\\\)'/", "\\'");
return message.replace("'", "\\'");
}

// Removes any legacy codes/MiniMessage tags
Expand Down

0 comments on commit 3097bf6

Please sign in to comment.