enhance: the character between version's minor and build part maybe '-'

This commit is contained in:
leo 2024-05-29 19:43:46 +08:00
parent 025d468b40
commit ec2d9c4cbe

View file

@ -87,7 +87,7 @@ namespace SourceGit.Converters
return true; return true;
}); });
[GeneratedRegex(@"^[\s\w]*(\d+)\.(\d+)\.(\d+).*$")] [GeneratedRegex(@"^[\s\w]*(\d+)\.(\d+)[\.\-](\d+).*$")]
private static partial Regex REG_GIT_VERSION(); private static partial Regex REG_GIT_VERSION();
private static readonly Version MINIMAL_GIT_VERSION = new Version(2, 23, 0); private static readonly Version MINIMAL_GIT_VERSION = new Version(2, 23, 0);