mirror of
https://github.com/dergigi/boris.git
synced 2026-02-09 09:04:38 +01:00
fix: correct syntax error in RichContent try-catch structure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user