mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Merge pull request #1945 from ivandrofly/optz-12
[HtmlUtil] - Make sure text contains '<'.
This commit is contained in:
commit
5e0d1bd5da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user