From a9d2494fee1ce94b10099b766117260f5aa5e6d5 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 23 Sep 2024 12:51:09 +0200 Subject: [PATCH] bags: remove regex workaround for bag searches --- modules/bags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bags.lua b/modules/bags.lua index efd19cd4..4fb4c0ce 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -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