prevent '' from excluding files in isExcluded

This commit is contained in:
hugs
2019-06-29 11:30:14 +02:00
committed by Antonin Décimo
parent a06522d201
commit 5be593f3fd

View File

@@ -87,7 +87,7 @@ end
--- on a file name string pattern match. --- on a file name string pattern match.
-- @local -- @local
local function isExcluded(file, exclusionRule, ...) local function isExcluded(file, exclusionRule, ...)
if exclusionRule == nil then return false end if exclusionRule == nil or exclusionRule == '' then return false end
if file:find(exclusionRule) then if file:find(exclusionRule) then
return true return true
else else