Skip to content

Commit b11be14

Browse files
committed
Bug fix changes2html.py to handle ALPHA/BETA releases
1 parent 60ff5d4 commit b11be14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/documentation/changes-to-html/changes2html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class ChangelogParser:
3232
"""Parse CHANGELOG.md generated by logchange"""
3333

34-
RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*)\](\s+-\s+(.+))?$')
34+
RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*(?:-[a-zA-Z0-9.]+)?)\](\s+-\s+(.+))?$')
3535
SECTION_PATTERN = re.compile(r'^###\s+(\w+(?:\s+\w+)*)\s*(?:\(\d+\s+changes?\))?')
3636
ITEM_PATTERN = re.compile(r'^###|^\[|^- ')
3737

0 commit comments

Comments
 (0)