From d904bafe7338d1d91995562b93d08bfb3d086bf1 Mon Sep 17 00:00:00 2001 From: Ednunp <29843396+Ednunp@users.noreply.github.com> Date: Mon, 25 May 2026 22:42:13 +0100 Subject: [PATCH] build-release.ps1: accept three-part hot-fix tags (e.g. v3.0.1) The script's ValidatePattern was '^v[0-9]+\.[0-9]+$', which rejected v3.0.1 because the v3.0 line predated any hot-fix releases. Widened to accept an optional third component so v3.0.1 (and future patch releases) build via the same path as v3.0 / v2.2 / etc. Co-Authored-By: Claude Opus 4.7 --- build-release.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-release.ps1 b/build-release.ps1 index 6cbf78a..91f6d9a 100644 --- a/build-release.ps1 +++ b/build-release.ps1 @@ -22,7 +22,8 @@ [CmdletBinding()] param( [Parameter(Mandatory = $true, Position = 0)] - [ValidatePattern('^v[0-9]+\.[0-9]+$')] + # Accepts two-part (v3.0) or three-part (v3.0.1 hot-fix) tags. + [ValidatePattern('^v[0-9]+\.[0-9]+(\.[0-9]+)?$')] [string]$Tag )