fix lua path matching again
This commit is contained in:
7
lua/lib/utils.lua
Normal file
7
lua/lib/utils.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
function M.path_to_matching_str(path)
|
||||
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user