@@ -869,19 +869,21 @@ public static string CleanVersionNumber(string version)
869869
870870var split = version . Split ( '.' ) ;
871871float 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}
877878else
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}
882883return version ;
883884}
884885
886+
885887// TODO only hash version is used, cleanup the rest
886888public static string ParseDownloadURLFromWebpage ( string version , string hash = null , bool preferFullInstaller = false , bool useHash = false )
887889{