Skip to content

Commit 340bac6

Browse files
committed
allow empty asciiname for author so all records get into ES
1 parent 08ba3b8 commit 340bac6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/MetaCPAN/Document/Author.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ has asciiname => (
2323
is => 'ro',
2424
required => 1,
2525
index => 'analyzed',
26-
isa => NonEmptySimpleStr,
26+
isa => Str,
27+
default => q{},
2728
);
2829

2930
has [qw(website email)] =>

lib/MetaCPAN/Script/Author.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ sub index_authors {
6060
my ( $name, $email, $homepage, $asciiname )
6161
= ( @$data{qw(fullname email homepage asciiname)} );
6262
$name = undef if ( ref $name );
63+
$asciiname = q{} unless defined $asciiname;
6364
$email = lc($pauseid) . '@cpan.org'
6465
unless ( $email && Email::Valid->address($email) );
6566
log_debug {

0 commit comments

Comments
 (0)