Skip to content

Commit ace31c1

Browse files
Casper Schmidt Wandahl-Liperarturcic
authored andcommitted
Revert default regular expression for GitHub and GitFlow configuration builders
1 parent 3871bc2 commit ace31c1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/GitVersion.Core.Tests/Configuration/ConfigurationProviderTests.CanWriteOutEffectiveConfiguration.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ prevent-increment-of-merged-branch-version: false
133133
track-merge-target: false
134134
track-merge-message: true
135135
commit-message-incrementing: Enabled
136-
regex: (?<BranchName>.+)
136+
regex: ''
137137
source-branches: []
138138
is-source-branch-for: []
139139
tracks-release-branches: false

src/GitVersion.Core/Configuration/GitFlowConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private GitFlowConfigurationBuilder()
2424
TagPreReleaseWeight = 60000,
2525
UpdateBuildNumber = true,
2626
VersioningMode = VersioningMode.ContinuousDeployment,
27-
RegularExpression = "(?<BranchName>.+)",
27+
RegularExpression = string.Empty,
2828
Label = ConfigurationConstants.BranchNamePlaceholder,
2929
Increment = IncrementStrategy.Inherit,
3030
CommitMessageIncrementing = CommitMessageIncrementMode.Enabled,

src/GitVersion.Core/Configuration/GitHubFlowConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private GitHubFlowConfigurationBuilder()
2424
TagPreReleaseWeight = 60000,
2525
UpdateBuildNumber = true,
2626
VersioningMode = VersioningMode.ContinuousDeployment,
27-
RegularExpression = "(?<BranchName>.+)",
27+
RegularExpression = string.Empty,
2828
Label = ConfigurationConstants.BranchNamePlaceholder,
2929
Increment = IncrementStrategy.Inherit,
3030
CommitMessageIncrementing = CommitMessageIncrementMode.Enabled,

0 commit comments

Comments
 (0)