mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
refactor: strip trailing punctuation from URLs before displaying
This commit is contained in:
parent
94c5ff2fd2
commit
750b12282f
1 changed files with 1 additions and 2 deletions
|
@ -797,8 +797,7 @@ class Coder:
|
||||||
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
||||||
for url in urls:
|
for url in urls:
|
||||||
dump(url)
|
dump(url)
|
||||||
#ai strip all trailing .', from url!
|
if self.io.confirm_ask("Open URL for more info about this error?", subject=url.rstrip(".',")):
|
||||||
if self.io.confirm_ask("Open URL for more info about this error?", subject=url):
|
|
||||||
webbrowser.open(url)
|
webbrowser.open(url)
|
||||||
return urls
|
return urls
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue