bags: sanitize search texst box patterns

This commit is contained in:
shagu
2020-05-31 15:40:01 +02:00
parent 238af6408d
commit fb6130a460
+1 -1
View File
@@ -893,7 +893,7 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function ()
if itemCount then
local itemLink = GetContainerItemLink(bag, slot)
local itemstring = string.sub(itemLink, string.find(itemLink, "%[")+1, string.find(itemLink, "%]")-1)
if strfind(strlower(itemstring), strlower(this:GetText())) then
if strfind(strlower(itemstring), strlower(string.gsub(this:GetText(), "([^%w])", "%%%1"))) then
pfUI.bags[bag].slots[slot].frame:SetAlpha(1)
else
pfUI.bags[bag].slots[slot].frame:SetAlpha(.25)