From 04254e660c75349e45abf73e11382f1771a2bc74 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Fri, 6 Sep 2024 01:46:07 +0100 Subject: [PATCH] trivia: forgot to include & in my regex smh --- commands/fun/trivia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/trivia.js b/commands/fun/trivia.js index e13e458..9a72d90 100644 --- a/commands/fun/trivia.js +++ b/commands/fun/trivia.js @@ -91,7 +91,7 @@ module.exports = { return "Video Games"; } })() - .replace(/[^a-zA-Z0-9 ]/g, "") + .replace(/[^a-zA-Z0-9 &]/g, "") .trim(); // Remove special characters and trim the category name for MongoDB query purposes in the Emebed title // Fetch a trivia question from the cache or the API