1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-01-18 21:35:13 +01:00

CI: Allow dashes in author e-mail domain names

Signed-off-by: Dr. Maxim Orlovsky <orlovsky@pandoraprime.ch>
This commit is contained in:
Dr Maxim Orlovsky 2022-08-21 21:38:54 +02:00 committed by Dr. Maxim Orlovsky
parent cdaccbedb5
commit 2f57890cbe
No known key found for this signature in database
GPG Key ID: 60094BAF18A26EC9

View File

@ -127,7 +127,7 @@ while (++$bipnum <= $topbip) {
my $title_len = length($title);
die "$fn has too-long TItle ($title_len > 44 char max)" if $title_len > 44 and not exists $TolerateTitleTooLong{$bipnum};
} elsif ($field eq 'Author') {
$val =~ m/^(\S[^<@>]*\S) \<([^@>]*\@[\w.]+\.\w+)\>$/ or die "Malformed Author line in $fn";
$val =~ m/^(\S[^<@>]*\S) \<([^@>]*\@[\w.-]+\.\w+)\>$/ or die "Malformed Author line in $fn";
my ($authorname, $authoremail) = ($1, $2);
$authoremail =~ s/(?<=\D)$bipnum(?=\D)/<BIPNUM>/g;
$emails{$authorname}->{$authoremail} = undef;