Skip to content

False alerts caused by incorrect regex url for rich_embed filter #2895

@Senjan21

Description

@Senjan21

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 against embed.url here which would cause a mismatch since Discord's embed.url would be https://google.com.

The solution might be as simple as adding [^\)] after \S+ to the regex pattern.

Metadata

Metadata

Assignees

Labels

a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)l: 0 - beginnerp: 3 - lowLow Prioritystatus: approvedThe issue has received a core developer's approvalt: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions