add missing :
This commit is contained in:
parent
74bfa03227
commit
b068c00b7f
@ -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:")
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user