fix: filter also supports ext with other characters than words

This commit is contained in:
kiyan
2021-10-12 19:44:51 +02:00
parent fda5b82bdf
commit 7f5a49f7c4

View File

@@ -142,7 +142,7 @@ local function gen_ignore_check(cwd)
return true return true
end end
local idx = path:match(".+()%.%w+$") local idx = path:match(".+()%.[^.]+$")
if idx then if idx then
if ignore_list['*'..string.sub(path, idx)] == true then return true end if ignore_list['*'..string.sub(path, idx)] == true then return true end
end end