From fde537cd7f44bfaf1fd6d1368ba5e8afd310f16c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 11 Jul 2023 13:08:10 -0700 Subject: [PATCH] aider: Fix regular expression in `setup.py` to remove all links, not just the internal anchor links. # Aider chat conversation: USER: the regex in `setup.py` is supposed to remove the list of links that appears right below the image in README. but it doesn't remove the links to aider.chat urls, just the internal anchor links. fix that. ASSISTANT: To fix the regular expression in `setup.py` to remove all links, not just the internal anchor links, we need to modify the `setup.py` file. Here's the change: ```python setup.py <<<<<<< ORIGINAL long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description) long_description = re.sub(r"\n- \[.*\]\(#.*\)", "", long_description) ======= long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description) long_description = re.sub(r"\n- \[.*\]\(.*\)", "", long_description) >>>>>>> UPDATED ``` This change will ensure that all links, including those to `aider.chat` URLs, are removed from the `long_description`. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cd9dfddbd7c..1f12a0b64fb 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description) - long_description = re.sub(r"\n- \[.*\]\(#.*\)", "", long_description) + long_description = re.sub(r"\n- \[.*\]\(.*\)", "", long_description) setup( name="aider-chat",