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

Function strip_google_scholar_url

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

Remove the first Google Scholar URL from user text and normalize whitespace.

(text: Any)

Source from the content-addressed store, hash-verified

1140
1141
1142def strip_google_scholar_url(text: Any) -> str:
1143 """Remove the first Google Scholar URL from user text and normalize whitespace."""
1144 stripped = GOOGLE_SCHOLAR_URL_RE.sub(" ", str(text or ""), count=1)
1145 return first_meaningful_line(re.sub(r"\s+", " ", stripped)).strip()
1146
1147
1148def looks_like_homepage_url(url: Any) -> bool:

Callers

nothing calls this directly

Calls 1

first_meaningful_lineFunction · 0.85

Tested by

no test coverage detected