Remove the first Google Scholar URL from user text and normalize whitespace.
(text: Any)
| 1140 | |
| 1141 | |
| 1142 | def 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 | |
| 1148 | def looks_like_homepage_url(url: Any) -> bool: |
nothing calls this directly
no test coverage detected