mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
handle the simple replace case quickly
This commit is contained in:
parent
395cf4c14f
commit
79d38b5d68
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ from pathlib import Path
|
|||
|
||||
|
||||
def replace_most_similar_chunk(whole, part, replace):
|
||||
if part in whole:
|
||||
return whole.replace(part, replace)
|
||||
|
||||
similarity_thresh = 0.8
|
||||
|
||||
max_similarity = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue