-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Second parameter of Substring is wrong in HeaderFindAndReplaceCreator (…
…#1424) * Update HeaderFindAndReplaceCreator.cs Second parameter of Substring was wrong. Existing implementation works only for replacements at the beginning of a string (startOfPlaceholder = 0) * Update HeaderFindAndReplaceCreator.cs Remove and Sort Usings * Update HeaderFindAndReplaceCreator.cs: Replace by char Co-authored-by: Raynald Messié <[email protected]> * Update HeaderFindAndReplaceCreator.cs: Split by char * Review * Fix 'length' value for 'Substring' 2nd param * Add unit test to check replacements in the middle --------- Co-authored-by: Raman Maksimchuk <[email protected]> Co-authored-by: Raynald Messié <[email protected]>
- Loading branch information
1 parent
5dbbbef
commit 5a81cce
Showing
2 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters