From aca24976a7a67847c5e63a6b49fc96d1b02ade86 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 22 May 2024 21:19:43 -0700 Subject: [PATCH] Add method to check for URLs in input. --- aider/coders/base_coder.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 158bdff7e..f76a81eaf 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -575,6 +575,13 @@ class Coder: return self.commands.run(inp) self.check_for_file_mentions(inp) + inp = self.check_for_urls(inp) + + return inp + + def check_for_urls(self, inp): + # todo use a regex to find all urls in inp + return inp def keyboard_interrupt(self):