Skip to content

Commit af87c8b

Browse files
committed
Updated changelog version regex for prerelease tag
1 parent c38b73e commit af87c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Changelog:
130130
"""
131131

132132
VERSION_REGEX = re.compile(
133-
r"#\s*([vV]\d+\.\d+(?:\.\d+)?)\s+(.*?)(?=#\s*[vV]\d+\.\d+(?:\.\d+)?|$)",
133+
r"#\s*([vV]\d+\.\d+(?:\.\d+)?(?:-\w+?)?)\s+(.*?)(?=#\s*[vV]\d+\.\d+(?:\.\d+)(?:-\w+?)?|$)",
134134
flags=re.DOTALL,
135135
)
136136

0 commit comments

Comments
 (0)