api: case insensitive search for item names

This commit is contained in:
shagu
2020-11-16 15:50:07 +01:00
parent e17d026de7
commit f525aefb2e
+1 -1
View File
@@ -314,7 +314,7 @@ function pfUI.api.FindItem(item)
if itemLink then
local _, _, parse = strfind(itemLink, "(%d+):")
local query = GetItemInfo(parse)
if query and query ~= "" and query == item then
if query and query ~= "" and string.lower(query) == string.lower(item) then
return bag, slot
end
end