Fixed test 1023 when using daily snapshots
diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl
index bd777a5..377808c 100755
--- a/tests/libtest/test1022.pl
+++ b/tests/libtest/test1022.pl
@@ -31,7 +31,7 @@
$curlconfigversion = "illegal value";
}
}
-else {
+else { # "vernum" case
# Convert hex version to decimal for comparison's sake
if($filever =~ /^(..)(..)(..)$/) {
$curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
@@ -41,7 +41,7 @@
}
# Strip off the -DEV from the curl version if it's there
- $version =~ s/-DEV$//;
+ $version =~ s/-\w*$//;
}
close CURLCONFIG;