From 716b88909a81868ddb07d0519e148822a0d3111c Mon Sep 17 00:00:00 2001 From: David Reiss Date: Fri, 5 Jul 2013 10:42:50 -0700 Subject: [PATCH] Escape + in pattern for extra safety The old version worked, but it seems like an accident that a "+" after a "*" is treated as a literal "+" and not a repetition. --- lsyncd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsyncd.lua b/lsyncd.lua index 16d05fb..e3197fc 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*(.*)' )