From 065b647a61549612f212eb02d9f8a4d7cbd22a5e Mon Sep 17 00:00:00 2001 From: hugs Date: Sat, 29 Jun 2019 11:30:14 +0200 Subject: [PATCH] prevent '' from excluding files in isExcluded --- src/project.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.lua b/src/project.lua index 9f0d776..bef9170 100644 --- a/src/project.lua +++ b/src/project.lua @@ -87,7 +87,7 @@ end --- on a file name string pattern match. -- @local 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 return true else