mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Removed always-true test (Forms/MultipleReplace)
This commit is contained in:
parent
395d5655a3
commit
2baf6d9edb
@ -193,11 +193,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
int index = newText.IndexOf(findWhat, StringComparison.OrdinalIgnoreCase);
|
||||
while (index >= 0)
|
||||
{
|
||||
if (index < newText.Length)
|
||||
newText = newText.Substring(0, index) + replaceWith + newText.Substring(index + findWhat.Length);
|
||||
else
|
||||
newText = newText.Substring(0, index) + replaceWith;
|
||||
|
||||
newText = newText.Substring(0, index) + replaceWith + newText.Remove(0, index + findWhat.Length);
|
||||
hit = true;
|
||||
index = newText.IndexOf(findWhat, index + replaceWith.Length, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user