Expanded partial name matching

This commit is contained in:
merstrax
2021-11-27 01:18:53 -05:00
parent 131414af4f
commit 0115372aed
2 changed files with 15 additions and 3 deletions
+7 -1
View File
@@ -468,7 +468,13 @@ function AtlasLoot:Search(Text)
local found;
if partial then
found = string.find(string.lower(itemName), text);
local res = SplitString(text, " ");
for _, t in ipairs(res) do
found = string.find(string.lower(itemName), t);
if not found then
break;
end
end
else
found = string.lower(itemName) == text;
end