{"thread":{"id":"54835","subject":"[PATCH] gitk: exclude common URL delimiters from linkification regex","startedAt":"2020-12-16T06:57:00Z","lastAt":"2020-12-16T06:57:00Z","messageCount":1,"participants":["Alex Henrie"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"412339","messageId":"20201216065523.12698-1-alexhenrie24@gmail.com","threadId":"54835","inReplyTo":null,"subject":"[PATCH] gitk: exclude common URL delimiters from linkification regex","fromName":"Alex Henrie","fromEmail":"alexhenrie24@gmail.com","sentAt":"2020-12-16T06:55:23Z","receivedAt":"2020-12-16T06:57:00Z","isPatch":true,"sender":{"key":"alexhenrie24@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5951993?v=4"},"body":"Angle brackets, square brackets, double quotes, and backticks are all\ncommonly used to delineate URLs in plain text (and should be escaped\nwhen they are actually part of the URL).\n\nSigned-off-by: Alex Henrie <alexhenrie24@gmail.com>\n---\n gitk | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/gitk b/gitk\nindex 23d9dd1..fcd6f61 100755\n--- a/gitk\n+++ b/gitk\n@@ -7054,7 +7054,7 @@ proc appendwithlinks {text tags} {\n         incr linknum\n     }\n     set wlinks [regexp -indices -all -inline -line \\\n-                    {https?://[^[:space:]]+} $text]\n+                    {https?://[^[:space:]<>\\[\\]\\\"`]+} $text]\n     foreach l $wlinks {\n         set s2 [lindex $l 0]\n         set e2 [lindex $l 1]\n-- \n2.29.2\n\n"}]}