From 3b30bc98c72c356b38b2d3c24fa449a92a55b355 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 2 Nov 2025 20:04:34 +0100 Subject: [PATCH] fix: correct syntax error in RichContent try-catch structure --- src/components/RichContent.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/RichContent.tsx b/src/components/RichContent.tsx index e72c3901..ae7cf307 100644 --- a/src/components/RichContent.tsx +++ b/src/components/RichContent.tsx @@ -32,13 +32,13 @@ const RichContent: React.FC = ({ const parts = content.split(combinedPattern) console.log('[RichContent] Split into parts:', parts.length) - // Helper to check if a string is a nostr identifier (without mutating regex state) - const isNostrIdentifier = (str: string): boolean => { - const testPattern = new RegExp(nostrPattern.source, nostrPattern.flags) - return testPattern.test(str) - } - - return ( + // Helper to check if a string is a nostr identifier (without mutating regex state) + const isNostrIdentifier = (str: string): boolean => { + const testPattern = new RegExp(nostrPattern.source, nostrPattern.flags) + return testPattern.test(str) + } + + return (
{parts.map((part, index) => { // Handle nostr: URIs - Tokens.nostrLink matches both formats