Skip to content

Commit 1cec8c6

Browse files
committed
fix(release): fix release_notes.py
We changed the markdown format of CHANGELOG.md to not have escapes for the square brackets, so the tool broke. This commit fixes it. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent d54d7cc commit 1cec8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/release-notes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
iterator = iter(changelog_lines)
2222

2323
for line in iterator:
24-
if line.startswith(f"## \\[{cur_version}\\]"):
24+
if line.startswith(f"## [{cur_version}]"):
2525
break
2626
else:
2727
print(f"Could not find changelog entry for version {cur_version}!")
2828
sys.exit(1)
2929

3030
for line in iterator:
31-
if line.startswith("## \\["):
31+
if line.startswith("## ["):
3232
break
3333

3434
if line.startswith("#"):

0 commit comments

Comments
 (0)