Support both - and %- in ignore list properly

This commit is contained in:
pepopo978
2025-11-04 08:52:21 -08:00
parent 6aea2fe1e6
commit f8bb31fe78
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ filter.notignored = function(unit)
return true
end
for _, str in ipairs(Cursive.db.profile.ignorelist) do
if string.find(string.lower(unitName), string.lower(str), nil, false) then
if string.find(string.lower(unitName), string.lower(str), nil, not Cursive.db.profile.ignorelistuseregex) then
return false
end
end