JAL-4454 make sure 2.11.4.0-test is stripped
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 11 Sep 2024 16:43:22 +0000 (17:43 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 11 Sep 2024 16:43:22 +0000 (17:43 +0100)
build.gradle

index a199713..cf9cd86 100644 (file)
@@ -1329,7 +1329,7 @@ def setReleaseAndWhatsNew(File whatsnewMdFile, File releaseMdFile) {
     {
       var nearestVersion = "${JALVIEW_VERSION_UNDERSCORES}"
       print "Stripping rc/test/etc for ${nearestVersion}"
-      nearestVersion = nearestVersion.replaceAll(~/\-?(d|rc|test|develop|dev).+/,"")
+      nearestVersion = nearestVersion.replaceAll(~/-?(d|rc|test|develop|dev).+/,"")
       var nearestMd = file("${jalviewDir}/${whatsnew_dir}/whatsnew-${nearestVersion}.md")
       print "Looking in ${nearestMd}"
       if (nearestMd.exists()) {