修复YAML过滤器正则:允许gitcode:等域名格式
- 修正正则:从'^(github|gitee|gitcode|git)\.ypshidifu'改为'^(github|gitee|gitcode|git)[:\.\s]' - 修复:gitcode: gitypshidifu...开头的混合消息不再被误杀为YAML行 - 公告查询得以正常进入知识库搜索
This commit is contained in:
+1
-1
@@ -7391,7 +7391,7 @@ class MessageMonitor:
|
||||
if re.match(r'^[a-zA-Z_][\w]*\s*:\s*["\w\d]', ts) and \
|
||||
not re.match(r'^(https?|ftp)://', ts) and \
|
||||
not re.match(r'^[a-zA-Z_][\w]*\s*:\s*/', ts) and \
|
||||
not re.match(r'^(github|gitee|gitcode|git)\.ypshidifu|git\.', ts, re.IGNORECASE):
|
||||
not re.match(r'^(github|gitee|gitcode|git)[:\.\s]|git\.', ts, re.IGNORECASE):
|
||||
logger.debug(f"[{platform}] Poll过滤: YAML行 ts={ts!r}")
|
||||
continue
|
||||
# === 纯问句碎片(如"怎么办?" "好不好?")无实质内容 ===
|
||||
|
||||
Reference in New Issue
Block a user