Spam phrase regex detects matches in linked URLs

abdfahim

Well-known member
Not sure if I should report this as a bug or ask for help to avoid this issue.

For example, a spam phrase regex of /[+0-9.-]{10,}/ will flag the following quote because the URL of the example link contains 1-4-10.163827.


I would argue it should not. Maybe [URL] BBCodes should be excluded from regex check.
 
Certainly not a bug. The regex you wrote matches that content.

While it could be theoretically possible to exclude the content of certain BB code from
the checks, we never would as it would prevent legitimate use cases such as preventing specific URLs from being flagged.

So you would just need to change your regex.

We know what you don’t want to match. Exactly what do you want to match?
 
Back
Top Bottom