forked from Kieran/snort
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 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:")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user