From 01c5fde775c22b6c41267698395087f21d3ccb47 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 9 Oct 2023 18:20:09 +0200 Subject: [PATCH] Fix editor mention preview --- src/constants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 6fee891..e81acee 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -249,9 +249,9 @@ export const interpunctionRegex = /^(\.|,|;|\?|\!)$/; export const hashtagRegex = /(?:\s|^)#[^\s!@#$%^&*(),.?":{}|<>]+/i; export const linebreakRegex = /(\r\n|\r|\n)/ig; export const tagMentionRegex = /\#\[([0-9]*)\]/; -export const noteRegex = /nostr:((note|nevent)1\w+)\b/; -export const profileRegex = /nostr:((npub|nprofile)1\w+)\b/; -export const editMentionRegex = /(?:\s|^)@\`(.*?)\`/i; +export const noteRegex = /nostr:((note|nevent)1\w+)\b/g; +export const profileRegex = /nostr:((npub|nprofile)1\w+)\b/g; +export const editMentionRegex = /(?:\s|^)@\`(.*?)\`/ig; export const medZapLimit = 1000;