fix path matching again

This commit is contained in:
kiyan42 2020-05-18 17:51:17 +02:00
parent 0ca069459a
commit 042d612d68

View File

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