fix string replace

This commit is contained in:
JIe 2025-01-06 14:58:59 +08:00
parent 061c574cce
commit f3468a596f

View File

@ -55,7 +55,7 @@ namespace toolkit{
}
size_t len = 0;
while(true){
auto pos = result.find_first_of(d);
auto pos = result.find(d);
if(pos == std::string::npos){
return result;
}