[HtmlUtil] - Make sure text contains '<'.

This commit is contained in:
Ivandro Ismael 2016-09-07 13:19:59 +01:00
parent ce0f2fdd37
commit 16c8b4d59c
No known key found for this signature in database
GPG Key ID: A8832757DEFB7EDC

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)