mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
try and better parse the new prettier quoted ORIGINAL/UPDATED blocks
This commit is contained in:
parent
1d0d3c700e
commit
008bb1cffa
1 changed files with 1 additions and 1 deletions
2
coder.py
2
coder.py
|
@ -268,7 +268,7 @@ class Coder:
|
|||
return resp
|
||||
|
||||
pattern = re.compile(
|
||||
r"(\S+)\s+(```)?<<<<<<< ORIGINAL\n(.*?\n?)=======\n(.*?\n?)>>>>>>> UPDATED",
|
||||
r"(\S+)\s+(```\s*)?<<<<<<< ORIGINAL\n(.*?\n?)=======\n(.*?\n?)>>>>>>> UPDATED",
|
||||
re.MULTILINE | re.DOTALL,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue