From f3468a596f5d1aa3ce431d762926fa7b5cf2b8b1 Mon Sep 17 00:00:00 2001 From: JIe Date: Mon, 6 Jan 2025 14:58:59 +0800 Subject: [PATCH] fix string replace --- include/toolkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toolkit.h b/include/toolkit.h index 1009322..e80a156 100644 --- a/include/toolkit.h +++ b/include/toolkit.h @@ -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; }