From 3f9dad8f9abd3173b75a422a43224a1ae8214de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 17 Dec 2024 14:40:44 +0400 Subject: [PATCH] Don't link nrelay in content It's deprecated --- nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostr.ts b/nostr.ts index 03ff19a..647951a 100644 --- a/nostr.ts +++ b/nostr.ts @@ -110,7 +110,7 @@ export async function nostrUriToUrl(uri: string): Promise { } export async function replaceNostrUris(markdown: string): Promise { - const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|nrelay|npub)[a-z0-9]+/g; + const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|npub)[a-z0-9]+/g; const matches = markdown.match(nostrUriRegex); if (!matches) return markdown;