mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-06-03 08:50:56 +00:00
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.
This commit is contained in:
parent
502e2e0eed
commit
716b88909a
|
@ -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