mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
parent
e5bc19548a
commit
bdfb3f1122
@ -909,6 +909,11 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
input = input.Substring(lineStartIndex, lineEndIndex - lineStartIndex);
|
input = input.Substring(lineStartIndex, lineEndIndex - lineStartIndex);
|
||||||
|
|
||||||
var startIndex = input.IndexOf("<", StringComparison.Ordinal);
|
var startIndex = input.IndexOf("<", StringComparison.Ordinal);
|
||||||
|
if (startIndex < 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var endIndex = input.LastIndexOf("</", StringComparison.Ordinal);
|
var endIndex = input.LastIndexOf("</", StringComparison.Ordinal);
|
||||||
if (endIndex >= 0)
|
if (endIndex >= 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user