Don't treat exclude lines with embedded "+" characters as inclusions

Previously, this code prevented any file name with a "+" character from
being excluded.
This commit is contained in:
David Reiss 2013-07-05 10:27:18 -07:00
parent e880c607be
commit 502e2e0eed

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*(.*)'
)