Fixed Replace words logic where it begin done on step text that is bolded
This commit is contained in:
parent
480c9c121e
commit
87734bb4d2
@ -1736,7 +1736,8 @@ namespace Volian.Controls.Library
|
||||
with = with.Replace(@"\ulnone ", "");
|
||||
}
|
||||
text = text.Substring(0, offset + foundMatch.MyMatch.Index) + with + text.Substring(offset + foundMatch.MyMatch.Index + foundMatch.MyMatch.Length);
|
||||
offset += foundMatch.MyWord.ReplaceWith.Length - foundMatch.MyMatch.Length;
|
||||
//offset += foundMatch.MyWord.ReplaceWith.Length - foundMatch.MyMatch.Length;
|
||||
offset += with.Length - foundMatch.MyMatch.Length;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user