Skip to content

Commit

Permalink
Merge branch 'jn/gitweb-committag'
Browse files Browse the repository at this point in the history
* jn/gitweb-committag:
  gitweb: Better regexp for SHA-1 committag match
  • Loading branch information
Junio C Hamano committed Feb 15, 2009
2 parents c42b04b + ccb04f9 commit 2a8644c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2a8644c

Please sign in to comment.