nvim-tree.lua/lua/lib/utils.lua
2020-06-01 16:06:23 +02:00

8 lines
146 B
Lua

local M = {}
function M.path_to_matching_str(path)
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
end
return M