Skip to content

Commit 6ac8d3c

Browse files
committed
fix: regex pattern issue
1 parent e87710a commit 6ac8d3c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/exporter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ def update_readme(
361361
return False
362362

363363
# Replace content between tags
364-
#pattern = f"{re.escape(START_TAG)}.*?{re.escape(END_TAG)}"
365-
#replacement = f"{START_TAG}\n\n{content}\n\n{END_TAG}"
366-
#new_content = re.sub(pattern, replacement, readme_content, flags=re.DOTALL)
364+
replacement = f"{START_TAG}\n\n{content}\n\n{END_TAG}"
367365
start_idx = readme_content.find(START_TAG)
368366
end_idx = readme_content.find(END_TAG) + len(END_TAG)
369367
new_content = readme_content[:start_idx] + replacement + readme_content[end_idx:]

0 commit comments

Comments
 (0)