Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Debug - 更新正则规则
Browse files Browse the repository at this point in the history
  • Loading branch information
QXAzusa committed Jun 20, 2022
1 parent b007d55 commit 4137c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4137c99

Please sign in to comment.