replace() gets confused if you give it a singleton list as its parameter.

This commit is contained in:
David Given 2016-08-12 00:19:30 +02:00
parent a200a2fb53
commit b592c88bdf

View file

@ -253,7 +253,7 @@ local function dirname(...)
end
local function replace(files, pattern, repl)
return dotocollection(files,
return dotocollection({files},
function(filename)
return filename:gsub(pattern, repl)
end