Skip to content

Commit

Permalink
includes/std: Fixed std::string::replace (#163)
Browse files Browse the repository at this point in the history
The submitted fix may have been a work in progress version instead of the tested solution I intended to submit. Hopefully this time I'll get it right.
  • Loading branch information
paxcut authored Sep 24, 2023
1 parent 734afdf commit 705900d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/std/string.pat
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ namespace std::string {
i = i + 1;
}
}
result = result + std::string::substr(string,string_len-pattern_len-1,pattern_len);
result = result + std::string::substr(string,string_len-pattern_len+1,pattern_len);

return result;
};
Expand Down

0 comments on commit 705900d

Please sign in to comment.