Re: [PATCHv6 7/8] gitweb: recognize 'trivial' acks
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> writes:
> foreach my $line (@$log) {
> - if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
> + if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|(?:trivially[ \-])?acked[ \-]by[ :]|cc[ :])/i) {Wouldn't it make more sense to do something like:
if ($line =~ m/^[-a-z]+: (.*)$/i && looks_like_a_name_and_email($1)) {
... do the avatar thing ...
}and limit this processing only to the last run of no-blank lines?