diff --git a/plugins/cheat/xml_conv.lua b/plugins/cheat/xml_conv.lua index d540fd7dbba..b53f3a92452 100644 --- a/plugins/cheat/xml_conv.lua +++ b/plugins/cheat/xml_conv.lua @@ -14,7 +14,7 @@ local function xml_parse(data) local arr = {} while str ~= "" do local tag, attr, stop - tag, attr, stop, str = str:match("<([%w!-]+) ?(.-)(/?)[ -]->(.*)") + tag, attr, stop, str = str:match("<([%w!%-]+) ?(.-)(/?)[ %-]->(.*)") if not tag then return arr @@ -26,7 +26,7 @@ local function xml_parse(data) nest, str = str:match("(.-)(.*)") local children = get_tags(nest) if not next(children) then - nest = nest:gsub("", "") + nest = nest:gsub("