nvim-tree.lua/lua/lib/utils.lua
2020-05-18 17:51:17 +02:00

8 lines
124 B
Lua

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