fix(docs): tighten taxonomy slug regex to exclude the Sub-categories heading

This commit is contained in:
2026-08-17 21:04:06 -04:00
parent fbb6b6e740
commit 0554a3dddc
+1 -1
View File
@@ -159,7 +159,7 @@ def _load_taxonomy() -> dict[str, set[str]]:
taxonomy[category] = {
m.group(1)
for ln in body.split("\n")
if (m := re.match(r"^## (\S+)$", ln))
if (m := re.match(r"^## ([a-z][a-z0-9-]*)$", ln))
}
return taxonomy