From e3b996e3e2fdb680f83f0b16a05a0a7d979ad1e4 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 11 Apr 2024 12:27:09 +0800 Subject: [PATCH] efwf --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 643d905..d832868 100644 --- a/main.py +++ b/main.py @@ -140,9 +140,12 @@ def h5group(nickname, db: Session = Depends(get_db)): pattern = r'收到(\w+)的在看' print(newtext) matches = re.findall(pattern, newtext) + print("matches",matches) matchesString=None if len(matches)>0: matchesString=matches[0] + print("matchesString",matchesString) + if matchesString: matchesString=remove_emojis(matchesString) #删除emoji字符串 print("匹配到的结果:", matchesString)