WIP: Add regex filter support #427

Draft
norm wants to merge 2 commits from norm/pleroma-fe:regex-mute-filter into develop

2 commits

Author SHA1 Message Date
ef6f8586c2 Move regex creation to filtering tab logic
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2024-12-18 22:45:05 -05:00
105154a42b Add regex filter support
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This makes any filter that starts and ends in forward slashes act as a
regex filter instead of a simple substring filter.

Currently doesn't support trailing flags unlike actual JS regexes, so
modifiers should be used instead for that functionality:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Modifier
2024-12-17 23:43:59 -05:00