Accept changelog entry without date (unreleased)

This commit is contained in:
Sylvia van Os
2021-09-14 19:17:26 +02:00
parent 2f660c6fec
commit b4077a2fc3

View File

@@ -15,7 +15,7 @@ with open('CHANGELOG.md') as changelog:
changelogs[version_code] = text
text = []
match = re.match("## \S* - (\d*) \(\d{4}-\d{2}-\d{2}\)", line)
match = re.match("## \S* - (\d*).*", line)
if not match:
raise ValueError(f"Invalid version line: {line}")
version_code = match.group(1)