Skip to content

Commit

Permalink
C4Strings: Fix ReplaceInString not skipping the needle properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Sep 1, 2024
1 parent 75c0114 commit f87199e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/C4Strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ String ReplaceInString(Subject&& subject, StringViewOf<Subject> needle, StringVi

result.append(subject, previousPos, pos - previousPos);
result.append(value);
pos += value.size();
pos += needle.size();
}

result.append(subject, previousPos, subject.size() - previousPos);
Expand Down

0 comments on commit f87199e

Please sign in to comment.