Fix detoken of table values, broken by previous commit

This commit is contained in:
Jason Perkins 2014-10-21 18:28:14 -04:00
parent 678d5729ae
commit 81c9493e0e

View File

@ -30,10 +30,6 @@
--
function detoken.expand(value, environ, ispath, basedir)
if type(value) ~= "string" then
return value
end
-- enable access to the global environment
setmetatable(environ, {__index = _G})
@ -83,6 +79,10 @@
end
function expandvalue(value)
if type(value) ~= "string" then
return
end
local count
repeat
value, count = value:gsub("%%{(.-)}", function(token)