mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
wip
This commit is contained in:
parent
e4d9e71f5b
commit
490796de78
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue