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
commit b1ee17e451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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