From a4aae9c556a61ecac73bff336be9eb2b858e5dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E4=BA=91?= <71159641+littlewhitecloud@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:14:28 +0800 Subject: [PATCH] Update title check --- check-markdown-links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-markdown-links.py b/check-markdown-links.py index 91cd1648..0ad950e1 100644 --- a/check-markdown-links.py +++ b/check-markdown-links.py @@ -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