Skip to content

Commit 0d9b801

Browse files
committed
fix: fix multi loras prompt parse
1 parent 176a00b commit 0d9b801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ std::pair<std::unordered_map<std::string, float>, std::string> extract_and_remov
285285
filename2multiplier[filename] += multiplier;
286286
}
287287

288-
text = std::regex_replace(text, re, "");
288+
text = std::regex_replace(text, re, "", std::regex_constants::format_first_only);
289289
}
290290

291291
return std::make_pair(filename2multiplier, text);

0 commit comments

Comments
 (0)