decentralised sync engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: add exception to domain checking for localhost

serenity c1b967a8 5e139ebd

+4 -1
+4 -1
src/lib/utils/domains.ts
··· 5 5 export const isDomain = (str: string) => { 6 6 try { 7 7 const url = new URL(str.includes("://") ? str : `https://${str}`); 8 - return url.hostname.includes(".") && !url.hostname.startsWith("."); 8 + return ( 9 + (url.hostname.includes(".") && !url.hostname.startsWith(".")) || 10 + url.hostname === "localhost" 11 + ); 9 12 } catch { 10 13 return false; 11 14 }