bags: remove regex workaround for bag searches

This commit is contained in:
shagu
2024-09-23 12:51:09 +02:00
parent 21f77eddbd
commit a9d2494fee
+1 -1
View File
@@ -1013,7 +1013,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(string.gsub(this:GetText(), "([^%w])", "%%%1"))) then
if strfind(strlower(itemstring), strlower(this:GetText()), 1, true) then
pfUI.bags[bag].slots[slot].frame:SetAlpha(1)
end
end