Re: [RFC PATCH 1/6] gitweb: Hyperlink committags in a commit message by regex matching
From: Petr Baudis <hidden> Date: 2016-06-15 22:47:44
On Tue, Nov 17, 2009 at 10:22:25PM -0800, Marcel M. Cary wrote:
+ # Avoid matching punctuation that might immediately follow
+ # a url, is not part of the url, and is allowed in urls,
+ # like a full-stop ('.').
+ 'pattern' => qr!(https?|ftps?|git|ssh|ssh+git|sftp|smb|webdavs?|
+ nfs|irc|nntp|rsync)
+ ://[-_a-zA-Z0-9\@/&=+~#<>;%:.?]+
+ [-_a-zA-Z0-9\@/&=+~#<>]!x,