mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
[KOE-177] Made version parsing less strict
This commit is contained in:
parent
d85c3ae19d
commit
91c95c3f15
@ -147,7 +147,7 @@ namespace Acacia.ZPush
|
|||||||
ZPushVersion = ZPushVersion.FromString(response.ZPushVersion);
|
ZPushVersion = ZPushVersion.FromString(response.ZPushVersion);
|
||||||
ServerSignaturesHash = response.SignaturesHash;
|
ServerSignaturesHash = response.SignaturesHash;
|
||||||
Confirmed = Capabilities == null ? ConfirmationType.IsNotZPush : ConfirmationType.IsZPush;
|
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);
|
_confirmedChanged?.Invoke(this);
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ namespace Acacia.ZPush
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Match match = new Regex(@"(\d+)[.](\d+)[.](\d+)[.]").Match(version);
|
Match match = new Regex(@"(\d+)[.](\d+)[.]").Match(version);
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
{
|
{
|
||||||
int major = int.Parse(match.Groups[1].Value);
|
int major = int.Parse(match.Groups[1].Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user