Update utils/textUtils.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
mroxso
2025-05-24 23:30:11 +02:00
committed by highperfocused
parent 1ed65cd0ea
commit 9dca4e3353

View File

@@ -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,