You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for text лариса expected it to match Лариса Короткина
When searching equals text лариса expected to match Лариса
The issue is u (unicode modifier) is not used in preg_* functions.
In equality test strtolower function is used, instead of Str::lower() which uses mb_strtolower to handle unicode.
Part of this is issue was already once mentioned #4284
Bug description
When searching for text лариса expected it to match Лариса Короткина
When searching equals text лариса expected to match Лариса
The issue is u (unicode modifier) is not used in preg_* functions.
In equality test strtolower function is used, instead of Str::lower() which uses mb_strtolower to handle unicode.
Part of this is issue was already once mentioned #4284
How to reproduce
Issue reproduced in added test cases
https://github.com/arturslo/cms/tree/issue/search-unicode
Some passing tests as proof that unaccepted pull request would fix issues with preg_* functions
https://github.com/arturslo/cms/tree/issue/search-unicode-apply-pull-request-4284
Run modified test classes
./vendor/bin/phpunit --filter CombTest
./vendor/bin/phpunit --filter QueryBuilderTest
Logs
No response
Versions
PHP 8.0.12
laravel/framework v8.73.2
statamic 3.2
Installation
Other (please explain)
Additional details
Just executed added tests on statamic/cms fork
The text was updated successfully, but these errors were encountered: