Skip to content

Commit

Permalink
fix(help): properly escape helptags search pattern (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Jan 1, 2023
1 parent 0a0f1b9 commit 1edd1b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1edd1b8

Please sign in to comment.