Diff options
Diffstat (limited to 'custom/extensions/link-commits.lua')
-rw-r--r--custom/extensions/link-commits.lua10
1 file changed, 5 insertions, 5 deletions
diff --git a/custom/extensions/link-commits.lua b/custom/extensions/link-commits.lua
index 3666140..fc095a4 100644
--- a/custom/extensions/link-commits.lua
+++ b/custom/extensions/link-commits.lua
@@ -28,8 +28,8 @@ local objects = {
}
-- Text-reference rules, each one a Lua pattern with a single capture and a
--- URL where %s is replaced by that capture, percent-encoded. The whole match
--- is what gets shown and the capture is only what goes into the URL. Rules are
+-- Url where %s is replaced by that capture, percent-encoded. The whole match
+-- is what gets shown and the capture is only what goes into the url. Rules are
-- tried in order and the leftmost match wins, so put the more specific
-- patterns first, and an empty list leaves only object names linked. The
-- examples are commented out, so an unedited copy links object names alone,
@@ -54,15 +54,15 @@ local rules = {
local chunks = {}
--- Percent-encode everything but the URL unreserved characters, so a captured
--- value cannot break out of the href attribute or out of the URL itself.
+-- Percent-encode everything but the url unreserved characters, so a captured
+-- value cannot break out of the href attribute or out of the url itself.
local function url_encode(s)
return (string.gsub(s, "[^%w._~-]", function(c)
return string.format("%%%02X", string.byte(c))
end))
end
--- Build one anchor from a URL template holding %s and the text to show. The
+-- Build one anchor from a url template holding %s and the text to show. The
-- replacement is a function so that a '%' in the encoded value is not taken
-- for a gsub reference.
local function make_link(url_template, capture, display)