mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Merge branch 'fix-embedding-replacement' of https://github.com/pythongosssss/ComfyUI
This commit is contained in:
commit
04b14bc59e
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user