diff options
| author | 2023-01-09 12:59:09 +0100 | |
|---|---|---|
| committer | 2023-01-09 12:59:09 +0100 | |
| commit | 3fb8ab8eb5c88042320bbe006825b21f5a8f21de (patch) | |
| tree | 3c7412d44bae45f4678cb5db3192ab22db58f2f7 /tests/app | |
| parent | b5a418ec1618cb1a058aee3dd47baa63562c9194 (diff) | |
Handling of parentheses as special characters in searches (#4989)
#fix https://github.com/FreshRSS/FreshRSS/issues/4987
Diffstat (limited to 'tests/app')
| -rw-r--r-- | tests/app/Models/SearchTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index fe686e7ba..52c10244d 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -339,6 +339,11 @@ class SearchTest extends PHPUnit\Framework\TestCase { '(author:Alice intitle:hello) !(author:Bob intitle:world)', ' ((e.author LIKE ? AND e.title LIKE ? )) AND NOT ((e.author LIKE ? AND e.title LIKE ? )) ', ['%Alice%', '%hello%', '%Bob%', '%world%'], + ], + [ + 'intitle:"\\(test\\)"', + '(e.title LIKE ? )', + ['%\\(test\\)%'], ] ]; } |
