public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a200a2f
)
replace() gets confused if you give it a singleton list as its parameter.
author
David Given
<dg@cowlark.com>
Thu, 11 Aug 2016 22:19:30 +0000
(
00:19
+0200)
committer
David Given
<dg@cowlark.com>
Thu, 11 Aug 2016 22:19:30 +0000
(
00:19
+0200)
first/ackbuilder.lua
patch
|
blob
|
history
diff --git
a/first/ackbuilder.lua
b/first/ackbuilder.lua
index
c7798e6
..
b59cb2a
100644
(file)
--- 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