From: Daniel Stenberg Date: Wed, 2 Feb 2022 13:14:44 +0000 (+0100) Subject: scripts/release-notes.pl: fix number extraction for full URLs X-Git-Tag: curl-7_82_0~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcf5d55363cfe590b134265885de6f51312d1c8a;p=thirdparty%2Fcurl.git scripts/release-notes.pl: fix number extraction for full URLs --- diff --git a/scripts/release-notes.pl b/scripts/release-notes.pl index 4260c5995a..64bdbd87fa 100755 --- a/scripts/release-notes.pl +++ b/scripts/release-notes.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2020 - 2021, Daniel Stenberg, , et al. +# Copyright (C) 2020 - 2022, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -95,7 +95,7 @@ sub extract { } elsif($ref =~ /^https:\/\/github.com\/curl\/curl\/.*\/(\d+)/) { # return the plain number - return $2; + return $1; } else { # return the URL @@ -133,6 +133,7 @@ for my $l (@gitlog) { } elsif($line =~ /^Clo(s|)es(:|) *(.*)/i) { push @closes, extract($3); + printf STDERR "CLOSES $3: %s\n", extract($3); } elsif($line =~ /^Bug: (.*)/i) { push @bug, extract($1);