[KOE-177] Made version parsing less strict

This commit is contained in:
Patrick Simpson 2018-10-02 10:52:21 +03:00
parent d85c3ae19d
commit 91c95c3f15
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ namespace Acacia.ZPush
ZPushVersion = ZPushVersion.FromString(response.ZPushVersion);
ServerSignaturesHash = response.SignaturesHash;
Confirmed = Capabilities == null ? ConfirmationType.IsNotZPush : ConfirmationType.IsZPush;
Logger.Instance.Info(this, "ZPush confirmation: {0} -> {1}, {2}", Confirmed, Capabilities, GABFolder);
Logger.Instance.Info(this, "ZPush confirmation: {0} -> {1}, {2}, {3} -> {4}", Confirmed, Capabilities, GABFolder, response.ZPushVersion, ZPushVersion);
_confirmedChanged?.Invoke(this);
}

View File

@ -45,7 +45,7 @@ namespace Acacia.ZPush
try
{
Match match = new Regex(@"(\d+)[.](\d+)[.](\d+)[.]").Match(version);
Match match = new Regex(@"(\d+)[.](\d+)[.]").Match(version);
if (match.Success)
{
int major = int.Parse(match.Groups[1].Value);