Leave note about bug in lineinfile
This commit is contained in:
parent
31ee0422eb
commit
ef6f95221a
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ function present(module, dest, regexp, line, insertafter, insertbefore, create,
|
||||||
local m = nil
|
local m = nil
|
||||||
for lineno, cur_line in ipairs(lines) do
|
for lineno, cur_line in ipairs(lines) do
|
||||||
if regexp ~= nil then
|
if regexp ~= nil then
|
||||||
|
-- FIXME: lua patterns are not regexes
|
||||||
match_found = string.match(cur_line, mre)
|
match_found = string.match(cur_line, mre)
|
||||||
else
|
else
|
||||||
match_found = line == rstrip(cur_line, '\r\n')
|
match_found = line == rstrip(cur_line, '\r\n')
|
||||||
|
|
Loading…
Add table
Reference in a new issue