Skip to content

Commit 7f5a49f

Browse files
committed
fix: filter also supports ext with other characters than words
1 parent fda5b82 commit 7f5a49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/populate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ local function gen_ignore_check(cwd)
142142
return true
143143
end
144144

145-
local idx = path:match(".+()%.%w+$")
145+
local idx = path:match(".+()%.[^.]+$")
146146
if idx then
147147
if ignore_list['*'..string.sub(path, idx)] == true then return true end
148148
end

0 commit comments

Comments
 (0)