mirror of
https://github.com/langgenius/dify.git
synced 2026-04-07 16:57:59 +08:00
fix message resign url
This commit is contained in:
parent
3e810bc490
commit
1b0acdbe63
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user