From cb5127049d56648a85ffa72c1f1afba9b3b20434 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 29 Jul 2022 20:52:57 +0300 Subject: [PATCH] bugfix to filter --- src/structure/components/commands/information/Commands.js | 2 +- src/utilities/FilterUtil.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structure/components/commands/information/Commands.js b/src/structure/components/commands/information/Commands.js index 00f7d8c..d2d91cd 100644 --- a/src/structure/components/commands/information/Commands.js +++ b/src/structure/components/commands/information/Commands.js @@ -15,7 +15,7 @@ class Commands extends SlashCommand { type: 'MODULE', description: ['List commands from a specific module'] }], - memberPermissions: ['ManageGuild'], + memberPermissions: [], guildOnly: true }); } diff --git a/src/utilities/FilterUtil.js b/src/utilities/FilterUtil.js index f2c0199..032d68f 100644 --- a/src/utilities/FilterUtil.js +++ b/src/utilities/FilterUtil.js @@ -197,6 +197,8 @@ module.exports = class FilterUtility { //Zero width character (UTF-16 8206) content = content.replace(/‎/gu, ''); + content = content.replace(/['"‘’“”]/gu, ''); + //Replace the weird letters with their normal text counterparts // eslint-disable-next-line no-useless-escape const match = (/[a-z0-9\w\(\)\.\\\/\?!]+/gimu).exec(content);