(value: str)
| 665 | ) -> str: |
| 666 | """Normalize a Scholar profile URL and request a larger publication page size.""" |
| 667 | candidate = _collapse_whitespace(scholar_url) |
| 668 | if not candidate: |
| 669 | raise ValueError("empty scholar url") |
| 670 | if "://" not in candidate: |
| 671 | candidate = f"https://{candidate.lstrip('/')}" |
| 672 | |
| 673 | parsed = urlsplit(candidate) |
| 674 | if not parsed.netloc: |
no test coverage detected