From 682054104db9e055ad47887753a7e0cdb726e0eb Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 2 Jan 2023 14:02:10 -0500 Subject: Fixed gsub. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.lua b/src/lpm.lua index 5058743..493dc23 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1775,7 +1775,7 @@ in any circumstance unless explicitly supplied. local names = common.map(plugins, function(plugin) if plugin.path then return string.format("[`%s`](%s?raw=1)", plugin.name, plugin.path) end if plugin.url then return string.format("[`%s`](%s)", plugin.name, plugin.url) end - if plugin.remote then return string.format("[`%s`](%s)\\*", plugin.name, plugin.remote:gsub(":%w+$")) end + if plugin.remote then return string.format("[`%s`](%s)\\*", plugin.name, plugin.remote:gsub(":%w+$", "")) end return plugin.name end) local descriptions = common.map(plugins, function(e) return e.description or "" end) -- cgit v1.2.3