We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a250daa commit 00dd77cCopy full SHA for 00dd77c
lib/OOCEapps/PkgUpd/Zig.pm
@@ -7,15 +7,17 @@ sub canParse {
7
my $name = shift;
8
my $url = shift;
9
10
- return $name =~ m!developer/zig$!;
+ return $name =~ m!developer/zig-!;
11
}
12
13
sub getVersions {
14
my $self = shift;
15
16
my $res = shift;
17
18
- return [ grep { /^[\d.]+$/ } keys %{$res->json // {}} ];
+ ($name, my $ver) = $self->extractNameMajVer($name);
19
+
20
+ return [ grep { /^\Q$ver\E[\d.]+$/ } keys %{$res->json // {}} ];
21
22
23
1;
@@ -24,7 +26,7 @@ __END__
24
26
25
27
=head1 COPYRIGHT
28
-Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
29
+Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
30
31
=head1 LICENSE
32
0 commit comments