fix 用户正则

This commit is contained in:
thsrite
2024-03-23 19:09:48 +08:00
parent 68efa508d0
commit 86f25d5283

View File

@@ -292,7 +292,7 @@ class WeChatForward(_PluginBase):
extra_userid = extras[3]
if re.search(extra_pattern, title):
# 判断text的userId
userid_pattern = r"用户:\{(\d+)\}"
userid_pattern = r"用户:(.*?)\n"
result = re.search(userid_pattern, text)
if not result:
continue