From b592c88bdfb468081e0402538b5bfc99b80f6165 Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 12 Aug 2016 00:19:30 +0200 Subject: [PATCH] replace() gets confused if you give it a singleton list as its parameter. --- first/ackbuilder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first/ackbuilder.lua b/first/ackbuilder.lua index c7798e6b8..b59cb2a67 100644 --- a/first/ackbuilder.lua +++ b/first/ackbuilder.lua @@ -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