File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
lib/ModulesPerl6/DbBuilder/Dist Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use File::Spec::Functions qw/catfile/;
5
5
use JSON::Meth qw/ $json/ ;
6
6
use Mojo::JSON qw/ from_json/ ;
7
7
use Mojo::UserAgent;
8
- use Mojo::Util qw/ slurp spurt decode/ ;
8
+ use Mojo::Util qw/ slurp spurt decode trim / ;
9
9
use Try::Tiny;
10
10
11
11
use ModulesPerl6::DbBuilder::Log;
@@ -85,9 +85,11 @@ sub _parse_meta {
85
85
} map {
86
86
$tags -> {$_ } || $_ # perform substitution to common form
87
87
} grep {
88
- length and not ref and not $no_index -> {$_ }
89
- } map uc , @{ $json -> {tags } };
88
+ length and not $no_index -> {$_ }
89
+ } map { trim uc } grep { not ref } @{ $json -> {tags } };
90
+
90
91
log warn => " `$json ->{name}` does not have any tags" ;
92
+
91
93
return $self -> _fill_missing( {%$json } );
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments