Skip to content

Commit

Permalink
Fix quotes breaking formatted message strings (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 authored Aug 10, 2020
1 parent c7958af commit b84986a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static String getPlayerLocaleString(String key, String locale, Object...
formatString = key;
}

return MessageFormat.format(formatString.replace("&", "\u00a7"), values);
return MessageFormat.format(formatString.replace("'", "''").replace("&", "\u00a7"), values);
}

/**
Expand Down

0 comments on commit b84986a

Please sign in to comment.