Escape + in pattern for extra safety

The old version worked, but it seems like an accident that a "+" after a
"*" is treated as a literal "+" and not a repetition.
This commit is contained in:
David Reiss 2013-07-05 10:42:50 -07:00
parent 502e2e0eed
commit 716b88909a

View File

@ -1384,7 +1384,7 @@ local Excludes = ( function( )
-- lsyncd 2.0 does not support includes
if not string.match(line, '^%s*+') then
if not string.match(line, '^%s*%+') then
local p = string.match(
line, '%s*-?%s*(.*)'
)