diff --git a/Scripts/Prepare-Build.ps1 b/Scripts/Prepare-Build.ps1
index 34fb5519d3f47e6ac36d2dfe760adfdddb1ed202..bbdf55614a4e3e01c187f2938fb28a71cdc63c66 100644
--- a/Scripts/Prepare-Build.ps1
+++ b/Scripts/Prepare-Build.ps1
@@ -96,7 +96,7 @@ if ($GenericTemplate) {
 }
 
 try {
-    $CommitName = & git describe --tags --long --match "[0-9].[0-9]"
+    $CommitName = & git describe --tags --long --match "[0-9]*.[0-9]*"
     if (-Not $?) { throw }
     $GitStatus = & git status --porcelain
     if (-Not $?) { throw }