add missing :

This commit is contained in:
Sam Samskies 2023-04-19 19:38:50 -05:00
parent 74bfa03227
commit b068c00b7f
No known key found for this signature in database
GPG Key ID: E3F697EE1B6EB156

View File

@ -39,14 +39,14 @@ export default function Text({ content, tags, creator, disableMedia, depth }: Te
const validateLink = () => { const validateLink = () => {
const normalizedStr = a.toLowerCase(); const normalizedStr = a.toLowerCase();
if (normalizedStr.startsWith("web+nostr") || normalizedStr.startsWith("nostr")) { if (normalizedStr.startsWith("web+nostr:") || normalizedStr.startsWith("nostr:")) {
return validateNostrLink(normalizedStr); return validateNostrLink(normalizedStr);
} }
return ( return (
normalizedStr.startsWith("http") || normalizedStr.startsWith("http:") ||
normalizedStr.startsWith("https") || normalizedStr.startsWith("https:") ||
normalizedStr.startsWith("magnet") normalizedStr.startsWith("magnet:")
); );
}; };