MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / strip_bootstrap_urls

Function strip_bootstrap_urls

agents/master-coordinator/main.py:1187–1191  ·  view source on GitHub ↗

Remove Scholar / homepage URLs from bootstrap text and normalize whitespace.

(text: Any)

Source from the content-addressed store, hash-verified

1185
1186
1187def strip_bootstrap_urls(text: Any) -> str:
1188 """Remove Scholar / homepage URLs from bootstrap text and normalize whitespace."""
1189 stripped = GOOGLE_SCHOLAR_URL_RE.sub(" ", str(text or ""), count=1)
1190 stripped = GENERIC_HTTP_URL_RE.sub(" ", stripped, count=1)
1191 return first_meaningful_line(re.sub(r"\s+", " ", stripped)).strip()
1192
1193
1194def detect_expand_push_request(text: Any) -> Optional[Dict[str, Any]]:

Callers 1

handle_cold_startMethod · 0.85

Calls 1

first_meaningful_lineFunction · 0.85

Tested by

no test coverage detected