Merge pull request #1700 from ivandrofly/bf-02

[Autobreak] - Add missing parentheses.
This commit is contained in:
Nikolaj Olsson 2016-04-12 06:05:42 +02:00
commit 8b01b4dc5d

View File

@ -424,7 +424,7 @@ namespace Nikse.SubtitleEdit.Core
if (noTagLines.Length == 2)
{
var arr0 = noTagLines[0].Trim().TrimEnd('"', '\'').TrimEnd();
if (arr0.StartsWith('-') && noTagLines[1].TrimStart().StartsWith('-') && arr0.Length > 1 && ".?!)]".Contains(arr0[arr0.Length - 1]) || arr0.EndsWith("--", StringComparison.Ordinal) || arr0.EndsWith(''))
if (arr0.StartsWith('-') && noTagLines[1].TrimStart().StartsWith('-') && arr0.Length > 1 && (".?!)]".Contains(arr0[arr0.Length - 1]) || arr0.EndsWith("--", StringComparison.Ordinal) || arr0.EndsWith('')))
return text;
}
}