mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
ask
This commit is contained in:
parent
506e3007c4
commit
44eb0b4f23
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class PRQuestions:
|
|||
# /ask question ... > 
|
||||
img_path = self.question_str.split('![image]')[1].strip().strip('()')
|
||||
self.vars['img_path'] = img_path
|
||||
elif 'https://' in self.question_str and '.png' in self.question_str: # direct image link
|
||||
elif 'https://' in self.question_str and ('.png' in self.question_str or 'jpg' in self.question_str): # direct image link
|
||||
# include https:// in the image path
|
||||
img_path = 'https://' + self.question_str.split('https://')[1]
|
||||
self.vars['img_path'] = img_path
|
||||
|
|
|
|||
Loading…
Reference in a new issue