Skip to content

Commit 3fed27d

Browse files
Allow single letter in version string
Modified regex patterns to allow a single letter (a-z, A-Z) after the last digit in the version string.
1 parent d5310d3 commit 3fed27d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CUERipper.Avalonia/Services/UpdateService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task<bool> FetchAsync()
5252
return false;
5353
}
5454

55-
string versionPattern = @"^v\d+\.\d+\.\d+$";
55+
string versionPattern = @"^v\d+\.\d+\.\d+[a-zA-Z]?$";
5656
Regex regex = new(versionPattern);
5757
if (!regex.IsMatch(latestRelease.Content.TagName))
5858
{
@@ -189,7 +189,7 @@ private void WriteReleasesToDiskCache(GithubRelease? githubRelease, string? auth
189189

190190
private static GithubAsset? GetSetupAsset(GithubRelease latestRelease)
191191
{
192-
const string EXE_PATTERN = @"^CUETools_Setup_\d+\.\d+\.\d+\.exe";
192+
const string EXE_PATTERN = @"^CUETools_Setup_\d+\.\d+\.\d+[a-zA-Z]?\.exe";
193193
Regex regex = new(EXE_PATTERN);
194194

195195
return latestRelease.Assets
@@ -199,7 +199,7 @@ private void WriteReleasesToDiskCache(GithubRelease? githubRelease, string? auth
199199

200200
private static GithubAsset? GetHashAsset(GithubRelease latestRelease)
201201
{
202-
const string HASH_PATTERN = @"^CUETools_Setup_\d+\.\d+\.\d+\.exe.sha256$";
202+
const string HASH_PATTERN = @"^CUETools_Setup_\d+\.\d+\.\d+[a-zA-Z]?\.exe\.sha256$";
203203
Regex regex = new(HASH_PATTERN);
204204

205205
return latestRelease.Assets

CUETools.Processor/CUESheet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class CUESheet
2828
{
2929
#region Fields
3030

31-
public const string CUEToolsVersion = "2.2.6";
31+
public const string CUEToolsVersion = "2.2.6a";
3232

3333
private bool _stop, _pause;
3434
private List<CUELine> _attributes;

packaging.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ErrorActionPreference = "Stop"
22

33
$cueToolsDirectories = Get-ChildItem -Path "bin/Release/CUETools_*" -Directory |
4-
Where-Object { $_.Name -match "CUETools_(\d+\.\d+\.\d+)" } |
4+
Where-Object { $_.Name -match "CUETools_(\d+\.\d+\.\d+[a-zA-Z]?)" } |
55
Sort-Object { [version]($matches[1]) } -Descending
66

77
if (-not $cueToolsDirectories) {

0 commit comments

Comments
 (0)