OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 19 Nov 2008 19:59:41 +0000 (19:59 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 19 Nov 2008 19:59:41 +0000 (19:59 +0000)
- Fixed small bug where release build numbers are not matched correctly with the regex.

git-svn-id: svn://localhost/HandBrake/trunk@1931 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/Main.cs

index 1fba55e..6374d74 100644 (file)
@@ -354,7 +354,9 @@ namespace Handbrake.Functions
             while (!cliProcess.HasExited)\r
             {\r
                 line = stdOutput.ReadLine();\r
-                Match m = Regex.Match(line, @"HandBrake [0-9\.]*svn[0-9]*[M]* \([0-9]*\)");\r
+                if (line == null) line = "";\r
+                Match m = Regex.Match(line, @"HandBrake ([0-9\.]*)*(svn[0-9]*[M]*)* \([0-9]*\)");\r
+\r
                 if (m.Success != false)\r
                 {\r
                     string data = line.Replace("(", "").Replace(")", "").Replace("HandBrake ", "");\r