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 ;
22using System ;
33using System . Collections . Generic ;
44using System . Diagnostics ;
@@ -481,7 +481,8 @@ public static bool VersionIsAlpha(string version)
481481
482482 public static bool VersionIsChinese ( string version )
483483 {
484- return version . Contains ( "c1" ) ;
484+ // return version.Contains("c1");
485+ return Regex . IsMatch ( version , "c\\ d+" ) ;
485486 }
486487
487488 // open release notes page in browser
@@ -642,7 +643,8 @@ public static int VersionAsInt(string version)
642643 // remove a,b,f,p
643644 cleanVersion = cleanVersion . Replace ( "a" , "." ) ;
644645 cleanVersion = cleanVersion . Replace ( "b" , "." ) ;
645- cleanVersion = cleanVersion . Replace ( "c1" , "" ) ;
646+ // cleanVersion = cleanVersion.Replace("c1", "");
647+ cleanVersion = Regex . Replace ( cleanVersion , "c\\ d+" , "" ) ;
646648 cleanVersion = cleanVersion . Replace ( "f" , "." ) ;
647649 cleanVersion = cleanVersion . Replace ( "p" , "." ) ;
648650
You can’t perform that action at this time.
0 commit comments