Skip to content

Commit 46b0027

Browse files
authored
replace any underscores that came in through group matches
1 parent 47753c5 commit 46b0027

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitVersion.Core/Extensions/ConfigurationExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public static bool IsReleaseBranch(this IGitVersionConfiguration configuration,
103103
{
104104
label = label.Replace("{" + groupName + "}", match.Groups[groupName].Value);
105105
}
106+
107+
label = label.Replace('_', '-');
106108
}
107109
}
108110

0 commit comments

Comments
 (0)