From ab393dd6ac9855563bce2033c35d78ff80dc1a65 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 6 Jan 2021 10:08:57 +0100 Subject: [PATCH] better fix for problem with version number: tag must be at beginning of line --- App/tools/getVersion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/tools/getVersion.pl b/App/tools/getVersion.pl index 1c54c69..2c6b9e7 100755 --- a/App/tools/getVersion.pl +++ b/App/tools/getVersion.pl @@ -223,7 +223,7 @@ sub parse_git_output { $version = "$major.$minor.$patch"; say STDERR "checking tag $line => version $version"; } - elsif ($line =~ /[a-zA-Z]+[a-zA-Z0-9]*_([0-9]+)_([0-9]+)(_([0-9]+))?$/) { + elsif ($line =~ /^[a-zA-Z]+[a-zA-Z0-9]*_([0-9]+)_([0-9]+)(_([0-9]+))?$/) { my $major = $1; my $minor = $2; my $patch = $4 || "0";