File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- using Microsoft . Win32 ;
1
+ using Microsoft . Win32 ;
2
2
using System ;
3
3
using System . Collections . Generic ;
4
4
using System . Diagnostics ;
@@ -481,7 +481,8 @@ public static bool VersionIsAlpha(string version)
481
481
482
482
public static bool VersionIsChinese ( string version )
483
483
{
484
- return version . Contains ( "c1" ) ;
484
+ // return version.Contains("c1");
485
+ return Regex . IsMatch ( version , "c\\ d+" ) ;
485
486
}
486
487
487
488
// open release notes page in browser
@@ -642,7 +643,8 @@ public static int VersionAsInt(string version)
642
643
// remove a,b,f,p
643
644
cleanVersion = cleanVersion . Replace ( "a" , "." ) ;
644
645
cleanVersion = cleanVersion . Replace ( "b" , "." ) ;
645
- cleanVersion = cleanVersion . Replace ( "c1" , "" ) ;
646
+ // cleanVersion = cleanVersion.Replace("c1", "");
647
+ cleanVersion = Regex . Replace ( cleanVersion , "c\\ d+" , "" ) ;
646
648
cleanVersion = cleanVersion . Replace ( "f" , "." ) ;
647
649
cleanVersion = cleanVersion . Replace ( "p" , "." ) ;
648
650
You can’t perform that action at this time.
0 commit comments