Skip to content

Commit

Permalink
quiet warning in changes processing
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jun 21, 2016
1 parent eb9099a commit d54d3dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/MetaCPAN/Web/Model/API/Changes.pm
Expand Up @@ -32,8 +32,9 @@ sub last_version {

my @releases = sort { $b->[0] <=> $a->[0] }
map {
my $v = $_->{version} =~ s/-TRIAL$//r;
my $dev = $_->{version} =~ /_|-TRIAL$/ || $_->{note} =~ /\bTRIAL\b/;
my $v = $_->{version} =~ s/-TRIAL$//r;
my $dev = $_->{version} =~ /_|-TRIAL$/
|| $_->{note} && $_->{note} =~ /\bTRIAL\b/;
[ version->parse($v), $v, $dev, $_ ];
} @$releases;

Expand Down

0 comments on commit d54d3dd

Please sign in to comment.