diff --git a/clients/python/wcferry/wxmsg.py b/clients/python/wcferry/wxmsg.py index 37d521d..390f0bf 100644 --- a/clients/python/wcferry/wxmsg.py +++ b/clients/python/wcferry/wxmsg.py @@ -56,7 +56,7 @@ class WxMsg(): if not self.from_group(): return False # 只有群消息才能 @ - if not re.findall(f".*({wxid}).*", self.xml): + if not re.findall(f"[\s|\S]*({wxid})[\s|\S]*", self.xml): return False # 不在 @ 清单里 if re.findall(r"@(?:所有人|all|All)", self.content):