fix message resign url

This commit is contained in:
takatost 2024-03-18 21:22:49 +08:00
parent 3e810bc490
commit 1b0acdbe63
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ class Message(db.Model):
if not self.answer:
return self.answer
pattern = r'\[!?.*?\]\((((http|https):\/\/[\w.-]+)?\/files\/(tools\/)?[\w-]+.*?timestamp=.*&nonce=.*&sign=.*)\)'
pattern = r'\[!?.*?\]\((((http|https):\/\/.+)?\/files\/(tools\/)?[\w-]+.*?timestamp=.*&nonce=.*&sign=.*)\)'
matches = re.findall(pattern, self.answer)
if not matches: