]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: fix %VERNUM
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jun 2024 08:16:59 +0000 (10:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jun 2024 10:48:35 +0000 (12:48 +0200)
It needs to be set to the leading digits and dots only, so that the
`-[date]` suffix strings are not included, as those used in the daily
snapshots.

Fixes #14035
Reported-by: Marcel Raad
Closes #14036

tests/runtests.pl

index 1c1d27b46f8f05aa885933e4bc42a7297c07d1dd..732ebae894d77cfafd1416a8e9525db16453a8e2 100755 (executable)
@@ -523,7 +523,7 @@ sub checksystemfeatures {
             $curl = $_;
             $CURLVERSION = $1;
             $CURLVERNUM = $CURLVERSION;
-            $CURLVERNUM =~ s/[^0-9.]//g; # dots and numbers only
+            $CURLVERNUM =~ s/^([0-9.]+)(.*)/$1/; # leading dots and numbers
             $curl =~ s/^(.*)(libcurl.*)/$1/g || die "Failure determining curl binary version";
 
             $libcurl = $2;