The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Prevent generating bad replacement regex
pythongosssss5186b3266a8c
diff --git a/web/scripts/pnginfo.js b/web/scripts/pnginfo.jsindex 31f470739..209b562a6 100644--- a/web/scripts/pnginfo.js+++ b/web/scripts/pnginfo.js@@ -131,6 +131,7 @@ export async function importA1111(graph, parameters) {}function replaceEmbeddings(text) {+ if(!embeddings.length) return text;return text.replaceAll(new RegExp("\\b(" + embeddings.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("\\b|\\b") + ")\\b",