From e20d79e78bf7df456c297fdb92e53ed2c1402c64 Mon Sep 17 00:00:00 2001 From: Den Delimarsky <53200638+localden@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:22:10 -0800 Subject: [PATCH] Update scripts/powershell/create-new-feature.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- scripts/powershell/create-new-feature.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/powershell/create-new-feature.ps1 b/scripts/powershell/create-new-feature.ps1 index f267377d..b2b3bc83 100644 --- a/scripts/powershell/create-new-feature.ps1 +++ b/scripts/powershell/create-new-feature.ps1 @@ -97,6 +97,9 @@ try { if ($LASTEXITCODE -eq 0) { foreach ($branch in $branches) { # Clean branch name: remove leading markers and remote prefixes + # The following regex removes: + # - Git's current branch marker ('*') and leading whitespace (e.g., '* main') + # - Remote prefixes (e.g., 'remotes/origin/') $cleanBranch = $branch.Trim() -replace '^\*?\s+', '' -replace '^remotes/[^/]+/', '' # Extract feature number if branch matches pattern ###-*