mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(help): properly escape helptags search pattern (#268)
This commit is contained in:
parent
0a0f1b95e9
commit
1edd1b8945
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ function M.index(plugin)
|
|||
if title then
|
||||
local tag = plugin.name .. "-" .. title:lower():gsub("%W+", "-")
|
||||
tag = tag:gsub("%-+", "-"):gsub("%-$", "")
|
||||
line = line:gsub("([%[%]/])", "\\%1")
|
||||
tags[tag] = { tag = tag, line = line, file = plugin.name .. ".md" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue