fixed regex

This commit is contained in:
Paul Gauthier 2023-04-19 06:17:52 -07:00
parent 4840cb0966
commit 9e4ba5ee4b
2 changed files with 13 additions and 5 deletions

View file

@ -294,7 +294,7 @@ class Coder:
return ''.join(resp)
pattern = re.compile(r'(\S+)\s+<<<<<<< ORIGINAL\n(.*?)\n=======\n(.*\n?)>>>>>>> UPDATED$', re.MULTILINE | re.DOTALL)
pattern = re.compile(r'(\S+)\s+<<<<<<< ORIGINAL\n(.*?)\n=======\n(.*?\n?)>>>>>>> UPDATED', re.MULTILINE | re.DOTALL)
def update_files(self, content, inp):