mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
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:
parent
e880c607be
commit
502e2e0eed
@ -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*(.*)'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user