File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ sub getVersions {
25
25
($name , $ver ) = $self -> extractNameMajVer($name );
26
26
27
27
return [
28
- map { m !/ v($ver \. (?:\d +\. ?)*)! } map { $_ -> {version } } $res -> json
28
+ map { m ! v($ver \. (?:\d +\. ?)*)! } map { $_ -> {version } } @{ $res -> json}
29
29
];
30
30
}
31
31
@@ -35,7 +35,7 @@ __END__
35
35
36
36
=head1 COPYRIGHT
37
37
38
- Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
38
+ Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
39
39
40
40
=head1 LICENSE
41
41
Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ sub canParse {
7
7
my $name = shift ;
8
8
my $url = shift ;
9
9
10
- return $name =~ m ! developer/zig$ ! ;
10
+ return $name =~ m ! developer/zig- ! ;
11
11
}
12
12
13
13
sub getVersions {
14
14
my $self = shift ;
15
15
my $name = shift ;
16
16
my $res = shift ;
17
17
18
- return [ grep { / ^[\d .]+$ / } keys %{$res -> json // {}} ];
18
+ ($name , my $ver ) = $self -> extractNameMajVer($name );
19
+
20
+ return [ grep { / ^\Q $ver \E [\d .]+$ / } keys %{$res -> json // {}} ];
19
21
}
20
22
21
23
1;
@@ -24,7 +26,7 @@ __END__
24
26
25
27
=head1 COPYRIGHT
26
28
27
- Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
29
+ Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
28
30
29
31
=head1 LICENSE
30
32
You can’t perform that action at this time.
0 commit comments