mirror of https://github.com/langgenius/dify.git
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