Merge pull request #4264 from FeepingCreature/fix/4277-accept-taggy-diff

refactor: update HEAD regex to accept optional closing tag in search blocks
This commit is contained in:
paul-gauthier 2025-06-25 10:57:35 -07:00 committed by GitHub
commit d022f4ac63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -383,7 +383,7 @@ def do_replace(fname, content, before_text, after_text, fence=None):
return new_content return new_content
HEAD = r"^<{5,9} SEARCH\s*$" HEAD = r"^<{5,9} SEARCH>?\s*$"
DIVIDER = r"^={5,9}\s*$" DIVIDER = r"^={5,9}\s*$"
UPDATED = r"^>{5,9} REPLACE\s*$" UPDATED = r"^>{5,9} REPLACE\s*$"