diff --git a/src/components/nostr/compact/ReactionCompactPreview.tsx b/src/components/nostr/compact/ReactionCompactPreview.tsx index c043a31..cb39993 100644 --- a/src/components/nostr/compact/ReactionCompactPreview.tsx +++ b/src/components/nostr/compact/ReactionCompactPreview.tsx @@ -26,7 +26,7 @@ export function ReactionCompactPreview({ event }: { event: NostrEvent }) { // Parse reaction content for custom emoji const parsedReaction = useMemo(() => { - const match = reaction.match(/^:([a-zA-Z0-9_]+):$/); + const match = reaction.match(/^:([a-zA-Z0-9_-]+):$/); if (match && customEmojis[match[1]]) { return { type: "custom" as const, diff --git a/src/components/nostr/kinds/ReactionRenderer.tsx b/src/components/nostr/kinds/ReactionRenderer.tsx index a04d699..25f5c37 100644 --- a/src/components/nostr/kinds/ReactionRenderer.tsx +++ b/src/components/nostr/kinds/ReactionRenderer.tsx @@ -32,7 +32,7 @@ export function Kind7Renderer({ event }: BaseEventProps) { // Parse reaction content to detect custom emoji shortcodes // Format: :shortcode: in the content const parsedReaction = useMemo(() => { - const match = reaction.match(/^:([a-zA-Z0-9_]+):$/); + const match = reaction.match(/^:([a-zA-Z0-9_-]+):$/); if (match && customEmojis[match[1]]) { return { type: "custom" as const,