Skip to content

Conversation

@heidkaemper
Copy link
Contributor

@heidkaemper heidkaemper commented Jan 16, 2025

This pull request fixes an error in the Comb search.

The search normally operates case insensitive. To ensure that this also works with UTF-8 characters (e.g. german umlauts), the regex patterns require the "u" modifier:
https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php

We had this problem with a german website. Lets say there is the word “Ökoland” indexed. A search for “Öko” returns the correct result. But a search for “öko” (lowercase) does not. This has now been resolved with the modifier.

@jasonvarga jasonvarga merged commit 2b490c1 into statamic:5.x Jan 22, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants