github hyperlink example
hyperlink example for github user/proj paths
This commit is contained in:
1 parent
d4219444d8
commit
7d212186c4
1 file changed
+7
@@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user