mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-24 01:00:27 +12:00
Update regex
This commit is contained in:
parent
40a2a77b09
commit
e5fd477379
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue