Skip to content

Commit

Permalink
improve Replace method
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli committed Apr 2, 2017
1 parent 20b7cee commit 1a33f24
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ public FormattedString Replace(string oldValue,string newValue,SpanOperand opera
}

public FormattedString Replace(string oldValue,Span newSpan) {
if(newSpan == null) {
throw new ArgumentNullException(nameof(newSpan));
}
return Replace(oldValue,newSpan.Text,newSpan);
}

Expand Down

0 comments on commit 1a33f24

Please sign in to comment.