From bcf27d8249b6ed7d446ea5c501c0398ebd2d44ab Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 9 Jan 2008 21:16:41 +0000 Subject: [PATCH] WinGui: - Fixed bug in subtitle parsing code. Didn't handle "," in languages git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1182 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Parsing/Subtitle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win/C#/Parsing/Subtitle.cs b/win/C#/Parsing/Subtitle.cs index b6908e28a..cf45c02ea 100644 --- a/win/C#/Parsing/Subtitle.cs +++ b/win/C#/Parsing/Subtitle.cs @@ -52,7 +52,8 @@ namespace Handbrake.Parsing public static Subtitle Parse(StringReader output) { string curLine = output.ReadLine(); - Match m = Regex.Match(curLine, @"^ \+ ([0-9]*), ([A-Za-z]*) \((.*)\)"); + + Match m = Regex.Match(curLine, @"^ \+ ([0-9]*), ([A-Za-z, ]*) \((.*)\)"); if (m.Success && !curLine.Contains("HandBrake has exited.")) { Subtitle thisSubtitle = new Subtitle(); -- 2.40.0