We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a26ee57 commit e20d79eCopy full SHA for e20d79e
scripts/powershell/create-new-feature.ps1
@@ -97,6 +97,9 @@ try {
97
if ($LASTEXITCODE -eq 0) {
98
foreach ($branch in $branches) {
99
# Clean branch name: remove leading markers and remote prefixes
100
+ # The following regex removes:
101
+ # - Git's current branch marker ('*') and leading whitespace (e.g., '* main')
102
+ # - Remote prefixes (e.g., 'remotes/origin/')
103
$cleanBranch = $branch.Trim() -replace '^\*?\s+', '' -replace '^remotes/[^/]+/', ''
104
105
# Extract feature number if branch matches pattern ###-*
0 commit comments