includes/std: Fixed std::string::replace (#163)

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.
This commit is contained in:
paxcut
2023-09-24 10:58:04 -07:00
committed by GitHub
parent 734afdf500
commit 705900d38b

View File

@@ -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;
};