Merge pull request #1945 from ivandrofly/optz-12

[HtmlUtil] - Make sure text contains '<'.
This commit is contained in:
Nikolaj Olsson 2016-09-07 16:57:38 +02:00 committed by GitHub
commit 5e0d1bd5da

View File

@ -403,7 +403,7 @@ namespace Nikse.SubtitleEdit.Core
public static string FixUpperTags(string text)
{
if (string.IsNullOrEmpty(text))
if (string.IsNullOrEmpty(text) || !text.Contains('<'))
return text;
var idx = text.IndexOfAny(UppercaseTags, StringComparison.Ordinal);
while (idx >= 0)