-
-
Notifications
You must be signed in to change notification settings - Fork 750
False alerts caused by incorrect regex url for rich_embed filter #2895
Copy link
Copy link
Closed
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)l: 0 - beginnerp: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)l: 0 - beginnerp: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Due to discord adding hyperlinking for users, the bot may mistakenly alert moderators about user embed.
Hyperlinks looks as follows:
[example](https://google.com)The regex we use here would match the string
https://google.com)and check it againstembed.urlhere which would cause a mismatch since Discord'sembed.urlwould behttps://google.com.The solution might be as simple as adding
[^\)]after\S+to the regex pattern.