mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Improved URL detection in check_for_urls
function to exclude trailing commas and periods.
This commit is contained in:
parent
02c3c4b8a0
commit
a39ad76be0
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ class Coder:
|
||||||
|
|
||||||
def check_for_urls(self, inp):
|
def check_for_urls(self, inp):
|
||||||
url_pattern = re.compile(
|
url_pattern = re.compile(
|
||||||
r"(https?://[^\s/$.?#].[^\s]*)"
|
r"(https?://[^\s/$.?#].[^\s]*[^\s,.])"
|
||||||
)
|
)
|
||||||
urls = url_pattern.findall(inp)
|
urls = url_pattern.findall(inp)
|
||||||
for url in urls:
|
for url in urls:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue