normalize characters in search text and match keys for FilteredLists

develop
Myk Taylor 2023-08-14 16:39:28 -07:00
parent a521b54da1
commit 7a4aaf8bc9
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

@ -2191,6 +2191,8 @@ function FilteredList:setFilter(filter, pos)
for _,key in ipairs(tokens) do
key = key:escape_pattern()
if key ~= '' then
search_key = dfhack.toSearchNormalized(search_key)
key = dfhack.toSearchNormalized(key)
if not self.case_sensitive then
search_key = string.lower(search_key)
key = string.lower(key)