diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-15 01:44:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-15 01:44:11 -0800 |
commit | 2a8644c7f163e4b76a36739ba936f8d5d91c3cf4 (patch) | |
tree | 482f1b1d8ce442af6aa7b39d2593a66ad615857c | |
parent | c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9 (diff) | |
parent | ccb04f99fe3858bae0f06fc7aeefc4d53fec1352 (diff) | |
download | git-2a8644c7f163e4b76a36739ba936f8d5d91c3cf4.tar.gz git-2a8644c7f163e4b76a36739ba936f8d5d91c3cf4.tar.xz |
Merge branch 'jn/gitweb-committag'
* jn/gitweb-committag:
gitweb: Better regexp for SHA-1 committag match
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 541087428..8dffa3fd5 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1368,7 +1368,7 @@ sub format_log_line_html { my $line = shift; $line = esc_html($line, -nbsp=>1); - if ($line =~ m/([0-9a-fA-F]{8,40})/) { + if ($line =~ m/\b([0-9a-fA-F]{8,40})\b/) { my $hash_text = $1; my $link = $cgi->a({-href => href(action=>"object", hash=>$hash_text), |