Open CyrilRonseaux opened 1 year ago
Additional test cases:
Add "Âne", "Ânon" and "Âgé" to the compendium
Search for "n". => item found.
Search for "Â" => nothing found
Add "Athlétisme" to the compendium
Search for "a" => Athlétisme found. But no item with  is found.
Search for "Â" => Athlétisme found. But no item with  is found.
Add "Tête" and "Forêt"
Search for "t" => both found
Search for "ê" => Tête is found (due to his ending e) as well as any word with e. Forêt isn't found.
For me searches without accentuated characters also fail.
Module disabled:
Module enabled (all other modules disabled):
@Weissrolf this looks like a problem with the newest changes in the pf2e search filter. I've got a ticket to investigate that here: #149
@CyrilRonseaux Thanks for raising this, will look into it when i get the chance
Ah, so different issues. Sorry for reporting in the wrong thread then. :-)
If you have an Item whose name includes non ascii characters, like é à ê ñ etc. (French, Spanish, Greek, Russian, ...), and you put it inside a Folder in a compendium, searching by name may not work.
Note that the item does exist:
![image](https://user-images.githubusercontent.com/38113746/190878492-74038156-dcdd-4272-9706-d44489acc2b6.png)
The issue happens when you search for that special character followed by at least one other character.
Steps to reproduce:
Create a World Compendium (e.g. Journal)
Create a Folder in that Compendium
Create a few entities (in our case Journal) whose name include non-ascii characters -- e.g. El Niño -- e.g. Électricité -- e.g. Élève
Place those items into the Compendium, inside the folder![image](https://user-images.githubusercontent.com/38113746/190878660-b881bb5b-f0d0-4d7c-8448-31df4e067a40.png)
Search for "É"
=> The character counts as a "e" and finds "El Niño", "Électricité" and "Élève". That an expectable behavior
Search for "Él"
=> you would expect same results, or at least "Électricité" and "Élève", but result is only "El Niño"![image](https://user-images.githubusercontent.com/38113746/190878897-c0a25bb4-ae6c-4a2a-b3d0-d30306a60119.png)
Some "special" characters fail when searching with a preceeding character:
Search for "è"
=> works![image](https://user-images.githubusercontent.com/38113746/190879311-6061e744-9c53-4bf8-b830-0a0387b15584.png)
Search for "lè"
=> fails. It finds "le" in "Électricité", but not "lè" in "Élève"![image](https://user-images.githubusercontent.com/38113746/190879320-d7479503-c0a2-43ab-af21-fa69b932eb1c.png)
Some "special" characters simply seem to work.
Compendium Folder seem to be the issue, as the search works fine if no folder is present.
Tested as of: