try and better parse the new prettier quoted ORIGINAL/UPDATED blocks

This commit is contained in:
Paul Gauthier 2023-05-07 22:23:39 -07:00
parent 1d0d3c700e
commit 008bb1cffa

View file

@ -268,7 +268,7 @@ class Coder:
return resp return resp
pattern = re.compile( 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, re.MULTILINE | re.DOTALL,
) )