Fix emotion parsing by replacing Chinese commas

Replace Chinese comma with English comma in emotion parsing.
This commit is contained in:
Zayrex
2025-12-12 10:16:01 +08:00
committed by GitHub
parent e36a1c65e8
commit 9e89501888

View File

@@ -993,7 +993,7 @@ class EmojiManager:
)
# 处理情感列表
emotions = [e.strip() for e in emotions_text.split(",") if e.strip()]
emotions = [e.strip() for e in emotions_text.replace("",",").split(",") if e.strip()]
# 根据情感标签数量随机选择 - 超过5个选3个超过2个选2个
if len(emotions) > 5: