mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Prefer index instead substring take '1'
This commit is contained in:
parent
17e7c898da
commit
ebc59a2dd2
@ -98,7 +98,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
string end = node.Attributes["end"].InnerText;
|
||||
string text = node.InnerText;
|
||||
|
||||
if (allTwoCifferMs && (start.Length != 11 || end.Length != 11 || start.Substring(8, 1) != ":" || end.Substring(8, 1) != ":"))
|
||||
if (allTwoCifferMs && (start.Length != 11 || end.Length != 11 || start[8] == ':' || end[8] == ':'))
|
||||
{
|
||||
allTwoCifferMs = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user