mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Merge pull request #1700 from ivandrofly/bf-02
[Autobreak] - Add missing parentheses.
This commit is contained in:
commit
8b01b4dc5d
@ -424,7 +424,7 @@ namespace Nikse.SubtitleEdit.Core
|
|||||||
if (noTagLines.Length == 2)
|
if (noTagLines.Length == 2)
|
||||||
{
|
{
|
||||||
var arr0 = noTagLines[0].Trim().TrimEnd('"', '\'').TrimEnd();
|
var arr0 = noTagLines[0].Trim().TrimEnd('"', '\'').TrimEnd();
|
||||||
if (arr0.StartsWith('-') && noTagLines[1].TrimStart().StartsWith('-') && arr0.Length > 1 && ".?!)]".Contains(arr0[arr0.Length - 1]) || arr0.EndsWith("--", StringComparison.Ordinal) || arr0.EndsWith('–'))
|
if (arr0.StartsWith('-') && noTagLines[1].TrimStart().StartsWith('-') && arr0.Length > 1 && (".?!)]".Contains(arr0[arr0.Length - 1]) || arr0.EndsWith("--", StringComparison.Ordinal) || arr0.EndsWith('–')))
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user