From 9dca4e33532e66618bfcec41bdb33ce580df7014 Mon Sep 17 00:00:00 2001 From: mroxso <24775431+mroxso@users.noreply.github.com> Date: Sat, 24 May 2025 23:30:11 +0200 Subject: [PATCH] Update utils/textUtils.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- utils/textUtils.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/textUtils.tsx b/utils/textUtils.tsx index 7191141..050cd4c 100644 --- a/utils/textUtils.tsx +++ b/utils/textUtils.tsx @@ -57,11 +57,11 @@ export function renderTextWithLinkedTags(content: string, eventTags: string[][]) } /** - * Replace nostr:npub references with @username in content - * @param content The text content that may contain nostr:npub references + * Replace nostr:npub and nostr:nprofile references with @username in content + * @param content The text content that may contain nostr:npub or nostr:nprofile references * @param eventTags The tags array from a Nostr event * @param userData Optional object containing profile data for referenced users - * @returns Text with replaced nostr:npub references + * @returns Text with replaced nostr:npub and nostr:nprofile references */ export function replaceNostrReferences( content: string,