feat: update some regexes

This commit is contained in:
codytseng
2025-01-16 22:51:48 +08:00
parent 8fb32bd380
commit f1ceac09bb
3 changed files with 3 additions and 3 deletions

View File

@@ -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,}$/