From dc2ee2cd141ee4a9fbfb667b4022df6e7ec8818f Mon Sep 17 00:00:00 2001 From: Changhua Date: Thu, 4 Jul 2024 19:52:53 +0800 Subject: [PATCH] Fix #170 --- clients/python/wcferry/wxmsg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):