From 7c37d92bdb830ea1bc7e3816d97359e3de3e0fdb Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 11 Apr 2024 14:04:45 +0800 Subject: [PATCH] dsgsdg --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fcbd337..3bd0e5d 100644 --- a/main.py +++ b/main.py @@ -163,7 +163,8 @@ def read_users(wxid, db: Session = Depends(get_db)): # 群-异度星球 49187487591@chatroom chatroom def h5group(nickname, db: Session = Depends(get_db)): newtext = unquote(nickname, 'utf-8') - pattern = r'收到(\w+)的在看' + # pattern = r'收到(\w+)的在看' + pattern = r'收到([\w\[\]@=]+)的在看' print(newtext) # 处理emoji转为[@emoji=1f916] 格式 newtext=transOldemoji(newtext)