From f525aefb2e70e967e267ef88d9fe929cf6cf1700 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 16 Nov 2020 15:50:07 +0100 Subject: [PATCH] api: case insensitive search for item names --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index 217d8c32..3fa341c4 100644 --- a/api/api.lua +++ b/api/api.lua @@ -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