Merge pull request #11 from kyazdani42/fix-path-matching

fix path matching again
This commit is contained in:
Kiyan Yazdani
2020-05-18 17:52:25 +02:00
committed by GitHub

View File

@@ -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