From 6b854dfd436dcd1b41de85f75181763e96385330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=E5=B0=8F=E4=BA=8C?= Date: Sun, 4 Oct 2026 15:30:15 +0800 Subject: [PATCH] test: ignore markdown link titles when extracting guide URLs Adapted from #91 onto the current test, which has since gained a first-party URL filter. Generated with [Devin](https://devin.ai) Co-Authored-By: Mobina Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/test_ai_coding_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ai_coding_content.py b/tests/test_ai_coding_content.py index 8e7e523..dd6c25b 100644 --- a/tests/test_ai_coding_content.py +++ b/tests/test_ai_coding_content.py @@ -49,7 +49,7 @@ def test_guide_reference_urls_come_from_reviewed_catalog() -> None: for path in GUIDES.values(): _, body = load_guide(path) - urls = set(re.findall(r"\]\((https://[^)]+)\)", body)) + urls = set(re.findall(r"\]\((https://[^)\s]+)", body)) assert urls assert {url for url in urls if not url.startswith(FIRST_PARTY_PREFIX)} <= catalog_urls