Fix mkauthors mishandling coauthor tags with periods at the end.

This commit is contained in:
Sadie Powell 2022-07-22 16:45:39 +01:00
parent 816af8c8cf
commit ddbe4574f4

View File

@ -35,6 +35,7 @@ for my $author (split /\n+/, `git log --pretty='%aN <%aE>%n%(trailers:key=Co-Aut
$author = $1 if $author =~ /^(.+) <(?:unknown\@email.invalid|\S+\@users.noreply.github.com)>$/;
next if $author =~ /\[bot\]$/;
$author =~ s/\.$//g;
$authors{$author} ||= 0;
$authors{$author} += 1;
}