listbox filter can match strings after punctuation

develop
Myk Taylor 2020-08-17 21:15:33 -07:00
parent 19a4d1df5a
commit 9a3e9d5b12
1 changed files with 2 additions and 1 deletions

@ -792,7 +792,8 @@ function FilteredList:setFilter(filter, pos)
local ok = true local ok = true
local search_key = v.search_key or v.text local search_key = v.search_key or v.text
for _,key in ipairs(tokens) do for _,key in ipairs(tokens) do
if key ~= '' and not string.match(search_key, '%f[^%s\x00]'..key) then if key ~= '' and
not string.match(search_key, '%f[^%s%p\x00]'..key) then
ok = false ok = false
break break
end end