mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-30 00:41:09 +00:00
Removed global flag when testing for profile regex. This fixes some issues when detecting profiles with nostr: prefix
This commit is contained in:
parent
22c4188e6a
commit
e04294e0d6
@ -251,7 +251,7 @@ 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/g;
|
||||
export const profileRegex = /nostr:((npub|nprofile)1\w+)\b/g;
|
||||
export const profileRegex = /nostr:((npub|nprofile)1\w+)\b/;
|
||||
export const editMentionRegex = /(?:\s|^)@\`(.*?)\`/ig;
|
||||
|
||||
export const medZapLimit = 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user