feat: update some regexes
This commit is contained in:
parent
8fb32bd380
commit
f1ceac09bb
3 changed files with 3 additions and 3 deletions
|
|
@ -23,5 +23,5 @@ export const SEARCHABLE_RELAY_URLS = ['wss://relay.nostr.band/', 'wss://search.n
|
|||
export const PICTURE_EVENT_KIND = 20
|
||||
export const COMMENT_EVENT_KIND = 1111
|
||||
|
||||
export const URL_REGEX = /(https?:\/\/[^\s"']+)/g
|
||||
export const URL_REGEX = /https?:\/\/[\w\p{L}\p{N}\p{M}&.-/?=#\-@%+_,:!~*]+/gu
|
||||
export const EMAIL_REGEX = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue