"...qwen3-reranker_pytorch.git" did not exist on "2d237d098108e8694857706f71a15ec9687ec9cb"
Commit 04b14bc5 authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'fix-embedding-replacement' of https://github.com/pythongosssss/ComfyUI

parents 476d543f 5186b326
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment