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
1 changed files with 4 additions and 4 deletions

View File

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