Subject: Re: [PATCHv2] gitweb: Better regexp for SHA-1 committag match

From: Junio C Hamano <[email-masked]>
Date: Fri, 06 Feb 2009 23:48:08 -0800

Jakub Narebski <[email-masked]> writes:

> Make SHA-1 regexp to be turned into hyperlink (SHA-1 committag)
> to match word boundary at beginning and end.  This way we limit
> false matches, for example 0x74a5cd01 which is hex decimal (for
> example memory address) but not SHA-1.
>
> Also make sure that it is not Message-ID, which fragment just
> looks like SHA-1 (e.g. "Message-ID: <[email-masked]>"),
> by using zero-width negative look-ahead assertion to _not_
> match '@' after.

Your message I am responding to is:

    Message-ID: <[email-masked]>

Does your description mean that "200902061149" would match, because the
LAA will say "Ah, dot is not an at-sign"?