Skip to content

Commit 9b39434

Browse files
Fixes in WebGUI Page
Fixed issues with detecting & converting Alpha/Beta F/W versions.
1 parent 19e8388 commit 9b39434

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

MerlinAU.asp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,14 @@ function FWVersionStrToNum(verStr)
8585
let nonProductionVersionWeight;
8686
foundAlphaBetaVersion = verStr.match (/([Aa]lpha|[Bb]eta)/);
8787
if (foundAlphaBetaVersion == null)
88-
{ nonProductionVersionWeight = 0 ; }
88+
{
89+
nonProductionVersionWeight = 0;
90+
}
8991
else
90-
{ nonProductionVersionWeight = 100 ; }
92+
{
93+
nonProductionVersionWeight = 100;
94+
verStr = verStr.replace (/([Aa]lpha|[Bb]eta)[0-9]*/,'0');
95+
}
9196
9297
// Remove everything after the first non-numeric-and-dot character //
9398
// e.g. "3006.102.1.alpha1" => "3006.102.1" //

0 commit comments

Comments
 (0)