Merge pull request #221 from dreiss/config

Fixes for parsing excludes file
This commit is contained in:
Axel Kittenberger 2013-07-07 23:15:33 -07:00
commit 1dacb68745
1 changed files with 3 additions and 1 deletions

View File

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