mirror of https://github.com/folke/lazy.nvim.git
fix(help): properly escape helptags search pattern (#268)
This commit is contained in:
parent
0a0f1b95e9
commit
1edd1b8945
|
@ -18,6 +18,7 @@ function M.index(plugin)
|
||||||
if title then
|
if title then
|
||||||
local tag = plugin.name .. "-" .. title:lower():gsub("%W+", "-")
|
local tag = plugin.name .. "-" .. title:lower():gsub("%W+", "-")
|
||||||
tag = tag:gsub("%-+", "-"):gsub("%-$", "")
|
tag = tag:gsub("%-+", "-"):gsub("%-$", "")
|
||||||
|
line = line:gsub("([%[%]/])", "\\%1")
|
||||||
tags[tag] = { tag = tag, line = line, file = plugin.name .. ".md" }
|
tags[tag] = { tag = tag, line = line, file = plugin.name .. ".md" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue