Skip to content

Commit 16174a3

Browse files
committed
fix incorrect escaping.
1 parent c50672a commit 16174a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GitVersion.Core/Core/RegexPatterns.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ internal static partial class Configuration
8484
public const string DefaultVersionInBranchRegexPattern = @"(?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*";
8585
public const string MainBranchRegexPattern = "^master$|^main$";
8686
public const string DevelopBranchRegexPattern = "^dev(elop)?(ment)?$";
87-
public const string ReleaseBranchRegexPattern = @"^releases?[\\/-](?<BranchName>.+)";
88-
public const string FeatureBranchRegexPattern = @"^features?[\\/-](?<BranchName>.+)";
87+
public const string ReleaseBranchRegexPattern = @"^releases?[\/-](?<BranchName>.+)";
88+
public const string FeatureBranchRegexPattern = @"^features?[\/-](?<BranchName>.+)";
8989
public const string PullRequestBranchRegexPattern = "^(pull-requests|pull|pr)[\\/-](?<Number>\\d*)";
90-
public const string HotfixBranchRegexPattern = @"^hotfix(es)?[\\/-](?<BranchName>.+)";
91-
public const string SupportBranchRegexPattern = @"^support[\\/-](?<BranchName>.+)";
90+
public const string HotfixBranchRegexPattern = @"^hotfix(es)?[\/-](?<BranchName>.+)";
91+
public const string SupportBranchRegexPattern = @"^support[\/-](?<BranchName>.+)";
9292
public const string UnknownBranchRegexPattern = "(?<BranchName>.+)";
9393

9494
[GeneratedRegex(DefaultTagPrefixRegexPattern, RegexOptions.IgnoreCase | RegexOptions.Compiled)]

0 commit comments

Comments
 (0)