Skip to content

Commit d0200be

Browse files
committed
build: Correct extracting release notes
1 parent 3e8b5b5 commit d0200be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/extract_release_notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def main() -> None:
99

1010
changelog = Path("CHANGELOG.md").read_text()
1111

12-
regex = re.compile(rf"^\#\#\s*({version})(?P<text>.*?)^\#\#\s+", re.MULTILINE | re.DOTALL)
12+
regex = re.compile(rf"^\#\#\s*v({version})[^\n]*?\n(?P<text>.*?)^\#\#\s+", re.MULTILINE | re.DOTALL)
1313

1414
for match in regex.finditer(changelog):
1515
print(match.group("text").strip())

0 commit comments

Comments
 (0)