Merge pull request #11 from kyazdani42/fix-path-matching
fix path matching again
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.path_to_matching_str(path)
|
function M.path_to_matching_str(path)
|
||||||
return path:gsub('(%-)', '%%-')
|
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)')
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
Reference in New Issue
Block a user