function r(t){if(!t||!t.startsWith("https://"))return;const e=new URL(t);if(e.hostname!=="twitter.com"&&!e.hostname.endsWith(".twitter.com"))return;const n=e.pathname.slice(1).split("/")[0];if(n)return"@"+n}export{r as g};