summaryrefslogtreecommitdiff
path: root/make/common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'make/common.pm')
-rw-r--r--make/common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/common.pm b/make/common.pm
index 6ca280bec..ba6b03f87 100644
--- a/make/common.pm
+++ b/make/common.pm
@@ -59,7 +59,7 @@ sub get_version {
# Attempt to retrieve missing version information from Git
chomp(my $gr = `git describe --tags 2>/dev/null`);
- if ($gr =~ /^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-\d+-g(\w+))?$/) {
+ if ($gr =~ /^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:[a-z]+\d+)?(?:-\d+-g(\w+))?$/) {
$version{MAJOR} //= $1;
$version{MINOR} //= $2;
$version{PATCH} //= $3;