summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-11-19 19:59:41 +0000
committersr55 <[email protected]>2008-11-19 19:59:41 +0000
commit4f73174d5e3440a1bb53424c1592bd6ff0dc6b91 (patch)
treebe26b91371573602c84930dbb675acab6dcca0b2 /win/C#/Functions
parent863edf053d287fda3fa777033668adda6509692a (diff)
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
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/Main.cs4
1 files changed, 3 insertions, 1 deletions
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 ", "");