diff --git a/api.lua b/api.lua index 7f6ec0a..2b6f48f 100644 --- a/api.lua +++ b/api.lua @@ -29,6 +29,7 @@ local function esc(x) :gsub('%.', '%%.') :gsub('%,', '%%,') :gsub('%;', '%%;') + :gsub('%\\', '%%\\') :gsub('%[', '%%[') :gsub('%]', '%%]') :gsub('%*', '%%*') @@ -52,6 +53,7 @@ end function x_marketplace.store_find(string) local found = "" local str = esc(string) + for k, v in pairs(x_marketplace.store_list) do if string.find(k, str) then found = found..k.." buy: "..string.format("%.2f", v.buy).." sell: "..string.format("%.2f", v.sell).."\n"