Re: [RFC PATCH 1/6] gitweb: Hyperlink committags in a commit message by regex matching
On Tue, Nov 17, 2009 at 10:22:25PM -0800, Marcel M. Cary wrote:
Show 7 quoted lines
> + # 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,You meant ssh\+git here. ;-)
Petr "Pasky" Baudis