diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index 1a0b05d..b4604b0 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -285,7 +285,7 @@ std::pair, std::string> extract_and_remov filename2multiplier[filename] += multiplier; } - text = std::regex_replace(text, re, ""); + text = std::regex_replace(text, re, "", std::regex_constants::format_first_only); } return std::make_pair(filename2multiplier, text);