IdreesInc / Mutable

A powerful app and extension to block content across the web and save your sanity
http://mutable.idreesinc.com
Mozilla Public License 2.0
16 stars 0 forks source link

[Enhancement] Support for regex filters #12

Open ktnjared opened 3 months ago

ktnjared commented 3 months ago

To help fine-tune filtering and reduce clutter by accomidating for things like plurals, leetspeak, shorthand, and other variations.

Example

string: (?i)\bm(icro)?(\$(.*\b)?|soft[[:alnum:]]{1,}|shaft.*\b|sludge\b) (Regex101 sample)

It would allow:

While filtering the following patterns

Microsofties Microshafted Microsludge
M$ Micro$oft Micro$ofties Micro$hafted Micro$ludge M$ Office
m$ micro$oft micro$ofties micro$hafted micro$ludge m$office

Futher regex string examples can be found at https://urre.github.io/mutebot/.

IdreesInc commented 1 month ago

While the most recent version doesn't add regex support, it does improve content parsing so a muted word like "test" will apply to "Test", "Test's", "'Test'", etc. which should hopefully help in the meantime!