mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
fix: strip trailing } from urls extracted from error messages
This commit is contained in:
parent
7d0dd29937
commit
0c8bc46e28
1 changed files with 1 additions and 1 deletions
|
@ -926,7 +926,7 @@ class Coder:
|
|||
url_pattern = re.compile(r'(https?://[^\s/$.?#].[^\s"]*)')
|
||||
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
||||
for url in urls:
|
||||
url = url.rstrip(".',\"")
|
||||
url = url.rstrip(".',\"}") # Added } to the characters to strip
|
||||
self.io.offer_url(url)
|
||||
return urls
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue