From b8319a4b364b558056335cc4947fcecc4f0cd4e7 Mon Sep 17 00:00:00 2001 From: Navy Date: Wed, 9 Jun 2021 21:37:41 +0300 Subject: [PATCH] regex preset tweaks --- structure/client/components/observers/GuildLogging.js | 2 +- util/filterPresets.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/structure/client/components/observers/GuildLogging.js b/structure/client/components/observers/GuildLogging.js index bf8fbaf..abba962 100644 --- a/structure/client/components/observers/GuildLogging.js +++ b/structure/client/components/observers/GuildLogging.js @@ -100,7 +100,7 @@ class GuildLogger extends Observer { name: `${message.author.tag} (${message.author.id})`, icon_url: message.author.displayAvatarURL({ size: 32 }) //eslint-disable-line camelcase }, - description: Util.escapeMarkdown(message.content).replace(/\\n/gu, ' '), + description: Util.escapeMarkdown(message.content)?.replace(/\\n/gu, ' '), color: CONSTANTS.COLORS.RED, footer: { text: `Message deleted in #${message.channel.name} | Message ID: ${message.id}` diff --git a/util/filterPresets.json b/util/filterPresets.json index 6573cdd..7d26353 100644 --- a/util/filterPresets.json +++ b/util/filterPresets.json @@ -1,7 +1,7 @@ { "regex": { "slurs": [ - "n(ae|ea|ji|j|y|i|x|!|1|\\||l)(gg?|qq|99?|bb)(?!ht)((e|3)r|let|ur|\\s?nog|y|ah?|or)?s?", + "n(ae|ea|ji|j|y|i|x|!|1|\\||l)(gg?|qq|99?|bb)(?!(ht|el))((e|3)r|let|ur|\\s?nog|y|ah?|or)?s?", "(?