From: sr55 Date: Wed, 19 Nov 2008 19:59:41 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f73174d5e3440a1bb53424c1592bd6ff0dc6b91;p=handbrake WinGui: - 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 --- diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index 1fba55ebf..6374d7407 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -354,7 +354,9 @@ namespace Handbrake.Functions while (!cliProcess.HasExited) { line = stdOutput.ReadLine(); - Match m = Regex.Match(line, @"HandBrake [0-9\.]*svn[0-9]*[M]* \([0-9]*\)"); + if (line == null) line = ""; + Match m = Regex.Match(line, @"HandBrake ([0-9\.]*)*(svn[0-9]*[M]*)* \([0-9]*\)"); + if (m.Success != false) { string data = line.Replace("(", "").Replace(")", "").Replace("HandBrake ", "");