This commit is contained in:
Pilzinsel64
2025-12-09 08:55:32 +01:00
parent 7e21064b8b
commit 33c422264a

View File

@@ -119,7 +119,14 @@ public class AppVersion(Version version, int build, AppChannel channel) : ICompa
string? versionStr; string? versionStr;
// 1.14.2-beta.1 // 1.14.2-beta.1
if (Regex.Match(input, @"(?<v>[0-9.]+)-(?<c>[a-zA-Z]+)\.(?<n>\d+)$") is { Success: true } matchTN) if (Regex.Match(input, @"(?<v>[0-9.]+)-(?<c>[a-zA-Z]+)\.(?<n>\d+)$") is { Success: true } matchTPN)
{
versionStr = matchTPN.Groups["v"].Value;
channelStr = matchTPN.Groups["c"].Value;
buildStr = matchTPN.Groups["b"].Value;
}
// 1.14.2-beta.1
else if (Regex.Match(input, @"(?<v>[0-9.]+)-(?<c>[a-zA-Z]+)(?<n>\d+)$") is { Success: true } matchTN)
{ {
versionStr = matchTN.Groups["v"].Value; versionStr = matchTN.Groups["v"].Value;
channelStr = matchTN.Groups["c"].Value; channelStr = matchTN.Groups["c"].Value;