summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.pl b/setup.pl
index b88c4010..c1b11e48 100755
--- a/setup.pl
+++ b/setup.pl
@@ -312,7 +312,7 @@ sub parse_links{
my $p = HTML::LinkExtor->new(\&cb);
$p->parse($text) or die;
foreach (@versions){
- my ($chkversion) = $_ =~ /^\/ledger-smb\/ledger-smb-(\d{1,3}\.\d{1,3}\.\d{1,3})\.tar\.gz$/;
+ my ($chkversion) = $_ =~ /^\/ledger-smb\/ledger-smb-(\d{1,3}\.\d{1,3}\.\d{1,3}\w*)\.tar\.gz$/;
$version = $chkversion if ($chkversion gt $version);
}
return $version;
@@ -322,7 +322,7 @@ sub cb {
# Callback function for LinkExtor
my($tag, %attr) = @_;
return if $tag ne 'a';
- return unless $attr{href} =~ /^\/ledger-smb\/ledger-smb-\d{1,3}\.\d{1,3}\.\d{1,3}\.tar\.gz$/;
+ return unless $attr{href} =~ /^\/ledger-smb\/ledger-smb-\d{1,3}\.\d{1,3}\.\d{1,3}\w*\.tar\.gz$/;
push(@versions, values %attr);
}