From a419079b31c2795cc846727e520fbbb968dbca0a Mon Sep 17 00:00:00 2001 From: Hunter B Date: Sat, 30 May 2026 21:51:47 -0700 Subject: [PATCH] fix(ci): ignore fenced blocks in provider docs span check --- scripts/check-provider-registry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check-provider-registry.py b/scripts/check-provider-registry.py index ed6b28b8..2b805067 100644 --- a/scripts/check-provider-registry.py +++ b/scripts/check-provider-registry.py @@ -149,7 +149,10 @@ def default_strings(tui_config_rs: str) -> set[str]: def missing_default_strings(providers_md: str, defaults: set[str]) -> list[str]: - code_spans = set(re.findall(r"`([^`]+)`", providers_md)) + # Inline-code validation should not let fenced TOML/bash examples pair a + # stray backtick with later prose; strip fenced blocks before scanning. + inline_source = re.sub(r"```.*?```", "", providers_md, flags=re.DOTALL) + code_spans = set(re.findall(r"`([^`]+)`", inline_source)) return sorted(defaults - code_spans)