From b1085ba53bb29d048971d599e37f5d83024aba56 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 19 May 2021 17:37:54 -0400 Subject: [PATCH] Fix --- commands/search/smash-bros.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/smash-bros.js b/commands/search/smash-bros.js index 3f4fd8eb..97068ded 100644 --- a/commands/search/smash-bros.js +++ b/commands/search/smash-bros.js @@ -35,7 +35,7 @@ module.exports = class SmashBrosCommand extends Command { try { const fighters = await this.fetchFighters(); const fighter = fighters.find(fighter => { - const search = query.toLowerCase().replaceAll(' ', '_').replace(/[^A-Z_]/i, ''); + const search = query.toLowerCase().replaceAll(' ', '_').replace(/[^A-Z_]/ig, ''); return search === fighter.slug; }); if (!fighter) return msg.say('Could not find any results.');