summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/xml_conv.lua
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-08-19 10:56:31 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-08-19 10:56:31 -0500
commit53962aff613cd5668c852e2648fd9ae2eedca195 (patch)
tree9d2838cc27f73a6efa64ad48dbab0a5a8d1d388e /plugins/cheat/xml_conv.lua
parent7d5ee756203a56410bd4f1452cbcc05215e7896f (diff)
luaengine: remove now unnecessary stuff since a copy of searchpath is made and it won't be garbage collected from underneath us (nw)
Diffstat (limited to 'plugins/cheat/xml_conv.lua')
-rw-r--r--plugins/cheat/xml_conv.lua4
1 files changed, 2 insertions, 2 deletions
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("(.-)</ *" .. tag .. " *>(.*)")
local children = get_tags(nest)
if not next(children) then
- nest = nest:gsub("<!--.--->", "")
+ nest = nest:gsub("<!--.-%-%->", "")
nest = nest:gsub("^%s*(.-)%s*$", "%1")
block["text"] = nest
else