From 490796de7816de1845f467b41db40d431838e036 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Jun 2023 14:32:45 -0700 Subject: [PATCH] wip --- aider/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aider/utils.py b/aider/utils.py index ef56a2aa3..6ef1edb19 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -59,10 +59,18 @@ def try_dotdotdots(whole, part, replace): return whole +def replace_part_with_missing_leading_whitespace(whole, part, replace): + pass + + def replace_most_similar_chunk(whole, part, replace): if part in whole: return whole.replace(part, replace) + res = replace_part_with_missing_leading_whitespace(whole, part, replace) + if res: + return res + try: res = try_dotdotdots(whole, part, replace) except ValueError: