Skip to content

Commit 4fa6c8e

Browse files
authored
Fix changelog extraction regex for H2 release headings (#1136)
1 parent 8a6f370 commit 4fa6c8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/httpx2/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ text = "\n## Release Information\n\n"
106106

107107
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
108108
path = "CHANGELOG.md"
109-
pattern = "\n(###.+?\n)## "
109+
pattern = "\n(## [0-9].+?)(?=\n## |$)"
110110

111111
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
112112
text = "\n---\n\n[Full changelog](https://github.com/pydantic/httpx2/blob/main/src/httpx2/CHANGELOG.md)\n"

0 commit comments

Comments
 (0)