From c21e95171cc68dca5e6ffb7b77d4dddf7a6ba06d Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 23 Mar 2010 01:57:47 -0400 Subject: [PATCH] In SearchRecipes(): Allow partial matching on acquire-type names. --- Frame.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 552557e..b5e5f48 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1336,7 +1336,9 @@ do entry.is_relevant = false for acquire_type in pairs(acquire_names) do - if pattern == string.lower(acquire_names[acquire_type]) and entry.acquire_data[acquire_type] then + local str = acquire_names[acquire_type]:lower() + + if str and str:find(pattern) and entry.acquire_data[acquire_type] then entry.is_relevant = true break end -- 1.7.9.5