From 1edd1b8945ee91cdfd61654af96c427dce285a9d Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Sun, 1 Jan 2023 15:56:18 +0600 Subject: [PATCH] fix(help): properly escape helptags search pattern (#268) --- lua/lazy/help.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazy/help.lua b/lua/lazy/help.lua index d2eba65..a41602f 100644 --- a/lua/lazy/help.lua +++ b/lua/lazy/help.lua @@ -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