From 502e2e0eed58194c63709640de699b407b77437e Mon Sep 17 00:00:00 2001 From: David Reiss Date: Fri, 5 Jul 2013 10:27:18 -0700 Subject: [PATCH] Don't treat exclude lines with embedded "+" characters as inclusions Previously, this code prevented any file name with a "+" character from being excluded. --- lsyncd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsyncd.lua b/lsyncd.lua index a268c58..16d05fb 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -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*(.*)' )