Skip to content

Commit 7d75e55

Browse files
committed
tweak highlights regex
1 parent 868aec3 commit 7d75e55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.dev/lint-release-notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def check_version_format(version_str: str) -> Version:
6464
def check_highlights(path: Path, version: Version) -> None:
6565
if version.maintenance == 0:
6666
content = path.read_text(encoding="utf-8")
67-
if not re.search(r"## .*Highlights\b", content, re.MULTILINE):
67+
if not re.search(r"^#?## .*Highlights\b", content, re.MULTILINE):
6868
raise ValueError(
6969
"major/minor release is missing a highlights heading. Add: ## Highlights"
7070
)

0 commit comments

Comments
 (0)