Update regex

This commit is contained in:
Jaex 2023-01-16 00:09:41 +03:00
parent 40a2a77b09
commit e5fd477379
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ jobs:
if: matrix.configuration == 'Release'
run: |
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}"
$match = [regex]::Match($content, 'AssemblyVersion\("(.+?)"\)')
$match = [regex]::Match($content, 'AssemblyVersion\("([0-9]+(?:\.[0-9]+){1,3})"\)')
$version = $match.Groups[1].Value
echo $version
echo "APP_VERSION=$version" >> $env:GITHUB_OUTPUT

View file

@ -61,7 +61,7 @@ public override void CheckUpdate()
}
catch (Exception e)
{
DebugHelper.WriteException(e, "GitHub update check failed");
DebugHelper.WriteException(e, "GitHub update check failed.");
}
Status = UpdateStatus.UpdateCheckFailed;