(self, url: str)
| 107 | return cleaned |
| 108 | |
| 109 | def extract_domain(self, url: str) -> str: |
| 110 | try: |
| 111 | parsed = urlparse(url) |
| 112 | domain = parsed.netloc or parsed.path.split("/")[0] |
| 113 | return self._normalize_domain(domain) |
| 114 | except Exception: |
| 115 | return "" |
| 116 | |
| 117 | def _apply_token_replacements(self, text: str) -> str: |
| 118 | value = text |
no test coverage detected