matrix-org / matrix-org/mjolnir

Improve Regex with wordlist protection

Open
#470 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.