Skip to content

Commit 04b14bc

Browse files
Merge branch 'fix-embedding-replacement' of https://github.com/pythongosssss/ComfyUI
2 parents 476d543 + 5186b32 commit 04b14bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/scripts/pnginfo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export async function importA1111(graph, parameters) {
131131
}
132132

133133
function replaceEmbeddings(text) {
134+
if(!embeddings.length) return text;
134135
return text.replaceAll(
135136
new RegExp(
136137
"\\b(" + embeddings.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("\\b|\\b") + ")\\b",

0 commit comments

Comments
 (0)