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 performing a site search using non-english characters, the search is performed with case sensitivity, so for example in Greek, searching for the word 'Βάρος', does not match 'βάρος' (Same word with a lowercase first letter).
Expected behavior
Your setup
Kirby Version
3.9.6.1
Your system (please complete the following information)
Device: Desktop PC
OS: Windows 10
Browser: Chrome, All
Version: 117
Additional context
I wrote about this issue in the forum, and @rasteiner explained the issue to me. I am quoting his answer (I hope that's ok):
"Kirby relies on the PCRE2 regex engine of PHP to find matches, it passes the i flag to the regex to make the search case insensitive, but in PCRE2 world, i only works for the ranges [a-zA-Z] (that’s only the 52 symbols of the English alphabet, like: it also [doesn’t match ü with Ü]. I guess Kirby could change that regular expression to [also include the u (Unicode) flag], that would fix the upper / lower case issue."
Is it possible that a small change to Kirby's code could fix this termporarily?
The text was updated successfully, but these errors were encountered:
Description
When performing a site search using non-english characters, the search is performed with case sensitivity, so for example in Greek, searching for the word 'Βάρος', does not match 'βάρος' (Same word with a lowercase first letter).
Expected behavior
Your setup
Kirby Version
3.9.6.1
Your system (please complete the following information)
Additional context
I wrote about this issue in the forum, and @rasteiner explained the issue to me. I am quoting his answer (I hope that's ok):
"Kirby relies on the PCRE2 regex engine of PHP to find matches, it passes the i flag to the regex to make the search case insensitive, but in PCRE2 world, i only works for the ranges [a-zA-Z] (that’s only the 52 symbols of the English alphabet, like: it also [doesn’t match ü with Ü]. I guess Kirby could change that regular expression to [also include the u (Unicode) flag], that would fix the upper / lower case issue."
Is it possible that a small change to Kirby's code could fix this termporarily?
The text was updated successfully, but these errors were encountered: