From 1b28d248749d1d6b98eca9d2e320407ac6847c6b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 9 May 2023 09:44:15 -0700 Subject: [PATCH] WIP: Refactor regex pattern in coder.py to include file extensions. --- coder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coder.py b/coder.py index 931c04085..7ea42eca8 100755 --- a/coder.py +++ b/coder.py @@ -376,7 +376,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(.*?)^>>>>>>> UPDATED", # noqa: E501 + r"(^```\S*\s*)?^((?:[a-zA-Z]:\\|/)?(?:[\w\s.-]+[\\/])*\w+(\.[\w\s.-]+)*)\s+(^```\S*\s*)?^<<<<<<< ORIGINAL\n(.*?\n?)^=======\n(.*?)^>>>>>>> UPDATED", # noqa: E501 re.MULTILINE | re.DOTALL, ) @@ -500,4 +500,4 @@ if __name__ == "__main__": from main import main status = main() - sys.exit(status) \ No newline at end of file + sys.exit(status)