github hyperlink example

hyperlink example for github user/proj paths
This commit is contained in:
Chris authored and Wez Furlong committed 2022-06-21 16:25:13 -07:00
1 parent d4219444d8
commit 7d212186c4
1 file changed
+7
+7
View File
@@ -49,6 +49,13 @@ return {
{
regex = [[\b[tT](\d+)\b]],
format = "https://example.com/tasks/?t=$1",
},
-- Make github like username/project paths
-- inside quotes and without clickable
{
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = "https://www.github.com/$1/$3",
}
}
}