The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Remove single quote pattern to avoid wrong matches (#9842)
Kimbing Nge5e70636e7b7
diff --git a/comfy/text_encoders/hunyuan_image.py b/comfy/text_encoders/hunyuan_image.pyindex be396cae7..699eddc33 100644--- a/comfy/text_encoders/hunyuan_image.py+++ b/comfy/text_encoders/hunyuan_image.py@@ -22,17 +22,14 @@ class HunyuanImageTokenizer(QwenImageTokenizer):# ByT5 processing for HunyuanImagetext_prompt_texts = []- pattern_quote_single = r'\'(.*?)\''pattern_quote_double = r'\"(.*?)\"'pattern_quote_chinese_single = r'‘(.*?)’'pattern_quote_chinese_double = r'“(.*?)”'- matches_quote_single = re.findall(pattern_quote_single, text)matches_quote_double = re.findall(pattern_quote_double, text)matches_quote_chinese_single = re.findall(pattern_quote_chinese_single, text)matches_quote_chinese_double = re.findall(pattern_quote_chinese_double, text)- text_prompt_texts.extend(matches_quote_single)text_prompt_texts.extend(matches_quote_double)text_prompt_texts.extend(matches_quote_chinese_single)text_prompt_texts.extend(matches_quote_chinese_double)