mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
test: add debug dump of URL pattern regex
This commit is contained in:
parent
15c62e3e43
commit
85ad2826da
1 changed files with 1 additions and 0 deletions
|
@ -794,6 +794,7 @@ class Coder:
|
|||
"""Check text for URLs and offer to open them in a browser."""
|
||||
|
||||
url_pattern = re.compile(r"(https?://[^\s/$.?#].[^\s]*?)([.']*$|[.',\s])")
|
||||
dump(url_pattern)
|
||||
# ai strip trailing . or ' from the url!
|
||||
|
||||
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue