Skip to content

Commit

Permalink
Merge pull request nvim-tree#11 from kyazdani42/fix-path-matching
Browse files Browse the repository at this point in the history
fix path matching again
  • Loading branch information
kyazdani42 committed May 18, 2020
2 parents ed6b2b9 + 0d9a4cb commit d3c4819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lib/utils.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local M = {}

function M.path_to_matching_str(path)
return path:gsub('(%-)', '%%-')
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)')
end

return M

0 comments on commit d3c4819

Please sign in to comment.