From 4f73174d5e3440a1bb53424c1592bd6ff0dc6b91 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 19 Nov 2008 19:59:41 +0000 Subject: 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 --- win/C#/Functions/Main.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win') 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 ", ""); -- cgit v1.2.3