mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +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
|
-- 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(
|
local p = string.match(
|
||||||
line, '%s*-?%s*(.*)'
|
line, '%s*-?%s*(.*)'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user