fix hashtag and mentions count after fixing encoding and add tests

This commit is contained in:
Mario Vavti
2025-12-12 19:15:28 +01:00
parent 5432819788
commit 2eb51233f6
3 changed files with 16 additions and 6 deletions

View File

@@ -117,6 +117,16 @@ class MessageFilterTest extends UnitTestCase {
'#*',
false
],
'max 1 hashtags (we got 3) in excl' => [
'',
'#>1',
false
],
'max 4 hashtags (we got 3) in excl' => [
'',
'#>4',
true
],
'item.body contains substring hopper in excl' => [
'',
'?body ~= hopper',