From 4137c99778d1b1bccd6d7e1198cafcdcb2baf698 Mon Sep 17 00:00:00 2001 From: qxazusa Date: Mon, 20 Jun 2022 22:10:59 +0800 Subject: [PATCH] =?UTF-8?q?Debug=20-=20=E6=9B=B4=E6=96=B0=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QQ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QQ.py b/QQ.py index 52a7dcd..804c602 100644 --- a/QQ.py +++ b/QQ.py @@ -37,7 +37,7 @@ def msgFormat(msg): if TG == "True": cqcode = re.findall('\[CQ:image.*?]', msg) for code in cqcode: - imageurl = re.findall('(?<=.image,url=).*?(?=,subType=)', code) + imageurl = re.findall('(?<=,url=).*?(?=\?term=)', code) imageurl = ' '.join(imageurl) renew = '[图片] ' + imageurl + '\n' msg = msg.replace(code, renew)