Fix emotion parsing by replacing Chinese commas

Replace Chinese comma with English comma in emotion parsing.
pull/1426/head
Zayrex 2025-12-12 10:16:01 +08:00 committed by GitHub
parent e36a1c65e8
commit 9e89501888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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: