feat: update url regex

This commit is contained in:
codytseng
2025-04-05 11:20:05 +08:00
parent e2454405ad
commit fab9ff88b5
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ export const PICTURE_EVENT_KIND = 20
export const COMMENT_EVENT_KIND = 1111
export const GROUP_METADATA_EVENT_KIND = 39000
export const URL_REGEX = /https?:\/\/[\w\p{L}\p{N}\p{M}&.-/?=#\-@%+_,:!~*]+/gu
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,}$/
export const MONITOR = '9bbbb845e5b6c831c29789900769843ab43bb5047abe697870cb50b6fc9bf923'