Skip to content

Commit

Permalink
Update title check
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Jan 13, 2025
1 parent f3add80 commit a4aae9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-markdown-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def check_https_url(url):
def get_all_refs(path):
result = []
for title in re.findall(r"\n#+ (.*)", path.read_text()):
words = re.findall(r"[a-z0-9]+", title.lower())
words = re.findall(r"[a-z0-9]+", title.lower().replace("'", ""))
result.append("#" + "-".join(words))
return result

Expand Down

0 comments on commit a4aae9c

Please sign in to comment.