diff --git a/extension/src/ui/hoverPanel.ts b/extension/src/ui/hoverPanel.ts index e9b749d..3dc3bec 100644 --- a/extension/src/ui/hoverPanel.ts +++ b/extension/src/ui/hoverPanel.ts @@ -253,7 +253,7 @@ export class HoverPanel { try { const host = new URL(candidateUrl).hostname.replace(/^www\./, ''); if (!host) return undefined; - return host.includes('docs.python.org') ? 'Python docs' : host; + return host === 'docs.python.org' ? 'Python docs' : host; } catch { return undefined; }