This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 3be91775405077dd7e187774c14717e85d02d4e3
Author: Jan Høydahl <[email protected]>
AuthorDate: Sun Nov 2 15:44:21 2025 +0100

    SOLR-17619 changes2html.py support release without release-date
---
 gradle/documentation/changes-to-html/changes2html.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gradle/documentation/changes-to-html/changes2html.py 
b/gradle/documentation/changes-to-html/changes2html.py
index 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 Path
 class 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

Reply via email to