From 61c8a8de01808c339dba74a14d455cf6bf45b5ae Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sat, 12 Oct 2024 01:08:00 +0200 Subject: [PATCH] escape tag markdown --- src/commands/fun/gelbooru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index d77294c..463e28b 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -55,7 +55,7 @@ function notEmpty(str) { const regexCutTags = /[\S\s]{1,875}[^,]{0,25}/; function formatTags(tags) { - const tagString = decode(tags.join(', ')); + const tagString = decode(tags.map(escapeMarkdown).join(', ')); if (tagString.length < 500) { return tagString;