From 502d6b22d4e67407bb8ec9681a6f2485dd045a31 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 8 May 2023 10:23:07 -0700 Subject: [PATCH] fixed regex --- coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coder.py b/coder.py index ca652975d..4598e477b 100755 --- a/coder.py +++ b/coder.py @@ -304,7 +304,7 @@ class Coder: self.console.print(md) pattern = re.compile( - r"(^```\S*\s*)?^((?:[a-zA-Z]:\\|/)?(?:[\w\s.-]+[\\/])*\w+\.\w+)\s+(^```\S*\s*)?^<<<<<<< ORIGINAL\n(.*?\n?)^=======\n(.*?\n?)*^>>>>>>> UPDATED", # noqa: E501 + r"(^```\S*\s*)?^((?:[a-zA-Z]:\\|/)?(?:[\w\s.-]+[\\/])*\w+\.\w+)\s+(^```\S*\s*)?^<<<<<<< ORIGINAL\n(.*?\n?)^=======\n(.*?)^>>>>>>> UPDATED", # noqa: E501 re.MULTILINE | re.DOTALL, )