Skip to content

Commit

Permalink
Fix openssh.com parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaran committed May 7, 2024
1 parent 70d75ed commit 496b107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/newest-openssh-version-on-openssh.com.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
my $ua = Mojo::UserAgent->new;

my $callout = $ua->get($url)->result->dom->at('#callout')->at('a');
my $callout_link = $callout->attr('href') =~ s/^txt\/release-//r;
my $callout_link = $callout->attr('href') =~ s/^(txt\/)?release(-|notes.html#)//r;
my $callout_text = $callout->text =~ s/^OpenSSH //r;

if ($callout_link eq $callout_text) {
Expand Down

0 comments on commit 496b107

Please sign in to comment.