matrix-org / matrix-org/mjolnir
Improve Regex with wordlist protection
Open
Nobody has claimed this yet.
T-Enhancement
- Dominant language
- TypeScript
- Stars
- 445
- Forks
- 75
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 3
Description
I get a lot of chinese spambots in my room. I tried a lot of regex with the wordlist protection to block all chinese for the first hour or non-ascii. Please improve the wordlist regex to allow for things like this. Here's what I tried and failed ro do: \p{Han} and [^\x00-\x7F]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files, tests, or entry points. Start by locating the wordlist protection regex and its configuration or matching tests, then verify that Han and other non-ASCII patterns can be represented and that the intended Chinese-spam blocking behavior is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100