Skip to content

Commit

Permalink
Update scripts/check-markdown-links.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Mar 29, 2024
1 parent 258a04b commit 5a7d3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-markdown-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def find_links(markdown_file_path):

if markdown_file_path.name == "CHANGELOG.md":
# Ignore changelogs of old versions. Editing them doesn't make sense.
header_matches = list(re.finditer("^## v", content, flags=re.MULTILINE))
header_matches = list(re.finditer("^## ", content, flags=re.MULTILINE))
end_of_current_version = header_matches[1].start()
content = content[:end_of_current_version]

Expand Down

0 comments on commit 5a7d3c7

Please sign in to comment.