소스 검색

Contains a fix for Work Item: 2639. Thanks to JerryVienna for finding and reporting this issue.

master
coffeycathal_cp 17 년 전
부모
커밋
5cbb2f9a5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      DocX/Paragraph.cs

+ 1
- 1
DocX/Paragraph.cs 파일 보기

@@ -695,7 +695,7 @@ namespace Novacode
/// <param name="trackChanges">Track changes</param>
public void Replace(string oldValue, string newValue, bool trackChanges, RegexOptions options)
{
MatchCollection mc = Regex.Matches(this.Value, oldValue, options);
MatchCollection mc = Regex.Matches(this.Value, Regex.Escape(oldValue), options);
// Loop through the matches in reverse order
foreach (Match m in mc.Cast<Match>().Reverse())

Loading…
취소
저장