Added escaping for italics

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-30 14:11:07 +01:00
parent 2f23965e9a
commit 5bd2e7bbe9

View File

@ -30,7 +30,7 @@ public class Quote extends Command {
if (quote == null)
embed.setDescription("We don't have any quote in that language right now! Sorry!").setColor(Color.ORANGE);
else {
embed.setDescription(quote.getSubtitleBlock().getDialogue());
embed.setDescription(quote.getSubtitleBlock().getDialogue().replaceAll("<i>|</i>", "*"));
embed.setFooter(quote.getMovie().toString(), null);
embed.setColor(Color.MEDIUM_SEA_GREEN);
}