@@ -21,12 +21,12 @@ public static class IncrementStrategyFinder
2121 public const string DefaultPatchPattern = @"\+semver:\s?(fix|patch)" ;
2222 public const string DefaultNoBumpPattern = @"\+semver:\s?(none|skip)" ;
2323
24- private static readonly ConcurrentDictionary < string , Regex > CompiledRegexCache = new ConcurrentDictionary < string , Regex > ( ) ;
24+ private static readonly ConcurrentDictionary < string , Regex > CompiledRegexCache = new ( ) ;
2525
26- private static readonly Regex DefaultMajorPatternRegex = new Regex ( DefaultMajorPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
27- private static readonly Regex DefaultMinorPatternRegex = new Regex ( DefaultMinorPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
28- private static readonly Regex DefaultPatchPatternRegex = new Regex ( DefaultPatchPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
29- private static readonly Regex DefaultNoBumpPatternRegex = new Regex ( DefaultNoBumpPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
26+ private static readonly Regex DefaultMajorPatternRegex = new ( DefaultMajorPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
27+ private static readonly Regex DefaultMinorPatternRegex = new ( DefaultMinorPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
28+ private static readonly Regex DefaultPatchPatternRegex = new ( DefaultPatchPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
29+ private static readonly Regex DefaultNoBumpPatternRegex = new ( DefaultNoBumpPattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
3030
3131 public static VersionField ? DetermineIncrementedField ( IGitRepository repository , GitVersionContext context , BaseVersion baseVersion )
3232 {
@@ -36,7 +36,7 @@ public static class IncrementStrategyFinder
3636 // use the default branch config increment strategy if there are no commit message overrides
3737 if ( commitMessageIncrement == null )
3838 {
39- return baseVersion . ShouldIncrement ? defaultIncrement : ( VersionField ? ) null ;
39+ return baseVersion . ShouldIncrement ? defaultIncrement : null ;
4040 }
4141
4242 // cap the commit message severity to minor for alpha versions
0 commit comments