mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
parent
ec1beebcff
commit
5364893f2b
@ -90,7 +90,7 @@ namespace Nikse.SubtitleEdit.Core.Forms
|
||||
// Okay or remove???
|
||||
string noTagText = HtmlUtil.RemoveHtmlTags(text);
|
||||
if (noTagText.Length > 10 && noTagText.IndexOf(':') == noTagText.Length - 1 && noTagText != noTagText.ToUpper())
|
||||
return text;
|
||||
return preAssTag + text;
|
||||
|
||||
string newText = string.Empty;
|
||||
var lines = text.Trim().SplitToLines();
|
||||
|
@ -1678,6 +1678,18 @@ namespace Test.Logic.Forms
|
||||
Assert.AreEqual("Gotta be ready before nightfall.", actual);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void RemoveTextBetweenBeforeColonDoNotTouch()
|
||||
{
|
||||
var target = GetRemoveTextForHiLib();
|
||||
target.Settings.RemoveTextBeforeColon = true;
|
||||
target.Settings.RemoveTextBetweenParentheses = true;
|
||||
var source = "{\\an8}But I know of something" + Environment.NewLine +
|
||||
"<i>that could:</i>";
|
||||
string actual = target.RemoveColon(source);
|
||||
Assert.AreEqual(source, actual);
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user