fix(help): properly escape helptags search pattern

This commit is contained in:
Munif Tanjim 2023-01-01 15:33:25 +06:00
commit e6357e01b0

View file

@ -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