From 008bb1cffa52e7f4cc5dd3d1fe4802502669b3e5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 7 May 2023 22:23:39 -0700 Subject: [PATCH] try and better parse the new prettier quoted ORIGINAL/UPDATED blocks --- coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coder.py b/coder.py index 47ef38d7f..804e6fd85 100755 --- a/coder.py +++ b/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, )