Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 890c63c

Browse files
fix release notes link for 600010b* versions
1 parent feafd2d commit 890c63c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎UnityLauncherPro/Tools.cs‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -869,19 +869,21 @@ public static string CleanVersionNumber(string version)
869869

870870
var split = version.Split('.');
871871
float parsedVersion = float.Parse($"{split[0]}.{split[1]}");
872-
// 2023.3 and newer Alpha releases, no replace
873-
if (IsAlpha(version) && parsedVersion >= 2023.3)
872+
873+
// For 2023.3 and newer pre-release (alpha or beta) versions, do not clean.
874+
if ((IsAlpha(version) || version.Contains("b")) && parsedVersion >= 2023.3)
874875
{
875-
// do nothing
876+
// Do nothing; leave version unchanged.
876877
}
877878
else
878879
{
879-
// note old patch versions still contains p## in the end
880-
version = Regex.Replace(version, @"[f|a|b][0-9]{1,2}", "", RegexOptions.IgnoreCase);
880+
// Remove the trailing patch/build indicator.
881+
version = Regex.Replace(version, @"[fab][0-9]{1,2}", "", RegexOptions.IgnoreCase);
881882
}
882883
return version;
883884
}
884885

886+
885887
// TODO only hash version is used, cleanup the rest
886888
public static string ParseDownloadURLFromWebpage(string version, string hash = null, bool preferFullInstaller = false, bool useHash = false)
887889
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /