8 lines
146 B
Lua
8 lines
146 B
Lua
local M = {}
|
|
|
|
function M.path_to_matching_str(path)
|
|
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
|
|
end
|
|
|
|
return M
|