取消对全角标点的拦截

This commit is contained in:
2025-11-06 15:21:38 +08:00
parent 7c4d0a0ef2
commit 6c2227debe

View File

@@ -117,9 +117,9 @@ class CommandParser:
# 拦截全角空格与全角标点(不允许)
# 范围包含:全角空格\u3000、全角标点\uFF01-\uFF60、兼容区\uFFE0-\uFFEE
if re.search(r"[\u3000\uFF01-\uFF60\uFFE0-\uFFEE]", content):
logger.debug(f"包含全角字符,忽略: {content}")
return None
# if re.search(r"[\u3000\uFF01-\uFF60\uFFE0-\uFFEE]", content):
# logger.debug(f"包含全角字符,忽略: {content}")
# return None
# 大小写不敏感匹配(仅用于匹配,不改变返回的原始内容)
content_lower = content.lower()