Apache Solr open-source search software
SOLR-17619 changes2html.py support release without release-date
Jan Høydahl368dedea6ee1
diff --git a/gradle/documentation/changes-to-html/changes2html.py b/gradle/documentation/changes-to-html/changes2html.pyindex ce302be11bf..1cd7bb93fbd 100755--- a/gradle/documentation/changes-to-html/changes2html.py+++ b/gradle/documentation/changes-to-html/changes2html.py@@ -31,7 +31,7 @@ from pathlib import Pathclass ChangelogParser:"""Parse CHANGELOG.md generated by logchange"""- RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*)\]\s*-\s*(.+)$')+ RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*)\](\s+-\s+(.+))?$')SECTION_PATTERN = re.compile(r'^###\s+(\w+(?:\s+\w+)*)\s*(?:\(\d+\s+changes?\))?')ITEM_PATTERN = re.compile(r'^###|^\[|^- ')@@ -80,7 +80,7 @@ class ChangelogParser:current_release = {'version': match.group(1),- 'date': match.group(2).strip(),+ 'date': match.group(3).strip() if match.group(3) else None,'sections': []}current_section = None