From d4d6f4a228b0fcc8fb685ad1c09d573425142bf0 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Fri, 30 Oct 2020 17:48:33 +0100 Subject: [PATCH] Added escaping for bold Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Quote.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/vallat/louis/commands/Quote.java b/src/main/java/xyz/vallat/louis/commands/Quote.java index 08a347f..6185432 100644 --- a/src/main/java/xyz/vallat/louis/commands/Quote.java +++ b/src/main/java/xyz/vallat/louis/commands/Quote.java @@ -30,7 +30,10 @@ 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().replaceAll("|", "*")); + embed.setDescription(quote.getSubtitleBlock().getDialogue() + .replaceAll("|", "*") + .replaceAll("|", "**") + ); embed.setFooter(quote.getMovie().toString(), null); embed.setColor(Color.MEDIUM_SEA_GREEN); }