mjolnir
mjolnir copied to clipboard
Feature - Mjolnir's WordList protection would be a lot more powerful if you could use regular expressions.
There's a lot of spammers always posting t.me links on the network these days.
It's frustrating because Mjolnir currently can't handle dynamic things like URLs. So you're stuck banning common words humans are more likely to use...
Since the previous config example suggested it, we assumed it supports regular expressions. After some testing, we noticed quickly that it actually didn't or that we were missed something. As a workaround, we often do something like t.me/ for URLs, if we wanted to generally ban everyone using a specific domain like this.
It works for most cases pretty well, and we had no issues doing this for years. Still, in certain situations, it would be beneficial if we could use regular expressions instead. A couple of times, we were unable to add something to the word list because it would create to many false-positives cases. This would solve this issue.
Need help getting this patch through if anyone has the time: https://github.com/matrix-org/mjolnir/pull/546#issuecomment-2495290550