mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Merge pull request #157 from ivandrofly/patch-18
Refact: Unneeded check
This commit is contained in:
commit
5b28bd9f3a
@ -1961,8 +1961,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
string oldText = p.Text;
|
||||
|
||||
Match match = ReAfterLowercaseLetter.Match(p.Text);
|
||||
if (match.Success)
|
||||
{
|
||||
while (match.Success)
|
||||
{
|
||||
if (!(match.Index > 1 && p.Text.Substring(match.Index - 1, 2) == "Mc")) // irish names, McDonalds etc.
|
||||
@ -1983,12 +1981,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
match = match.NextMatch();
|
||||
}
|
||||
}
|
||||
|
||||
StripableText st = new StripableText(p.Text);
|
||||
match = ReBeforeLowercaseLetter.Match(st.StrippedText);
|
||||
if (match.Success)
|
||||
{
|
||||
while (match.Success)
|
||||
{
|
||||
string word = GetWholeWord(st.StrippedText, match.Index);
|
||||
@ -2093,7 +2088,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
match = match.NextMatch();
|
||||
}
|
||||
}
|
||||
|
||||
//isLineContinuation = p.Text.Length > 0 && Utilities.GetLetters(true, true, false).Contains(p.Text[p.Text.Length - 1].ToString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user