fix: correct syntax error in RichContent try-catch structure

This commit is contained in:
Gigi
2025-11-02 20:04:34 +01:00
parent 056da1ad23
commit 3b30bc98c7

View File

@@ -32,13 +32,13 @@ const RichContent: React.FC<RichContentProps> = ({
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 (
<div className={className}>
{parts.map((part, index) => {
// Handle nostr: URIs - Tokens.nostrLink matches both formats