trivia: forgot to include & in my regex smh

This commit is contained in:
Ayden Jahola 2024-09-06 01:46:07 +01:00
parent 82f2f7ed36
commit 04254e660c
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -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