bugfix to filter

This commit is contained in:
Erik 2022-07-29 20:52:57 +03:00
parent 9dcdfdc403
commit cb5127049d
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Commands extends SlashCommand {
type: 'MODULE', type: 'MODULE',
description: ['List commands from a specific module'] description: ['List commands from a specific module']
}], }],
memberPermissions: ['ManageGuild'], memberPermissions: [],
guildOnly: true guildOnly: true
}); });
} }

View File

@ -197,6 +197,8 @@ module.exports = class FilterUtility {
//Zero width character (UTF-16 8206) //Zero width character (UTF-16 8206)
content = content.replace(//gu, ''); content = content.replace(//gu, '');
content = content.replace(/['"‘’“”]/gu, '');
//Replace the weird letters with their normal text counterparts //Replace the weird letters with their normal text counterparts
// eslint-disable-next-line no-useless-escape // eslint-disable-next-line no-useless-escape
const match = (/[a-z0-9\w\(\)\.\\\/\?!]+/gimu).exec(content); const match = (/[a-z0-9\w\(\)\.\\\/\?!]+/gimu).exec(content);