replace() gets confused if you give it a singleton list as its parameter.
This commit is contained in:
parent
a200a2fb53
commit
b592c88bdf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue