- Fixed small bug where release build numbers are not matched correctly with the regex.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1931
b64f7644-9d1e-0410-96f1-
a4d463321fa5
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