feat: Improved link editing and creation in Super notes (#2382) [skip e2e]

This commit is contained in:
Aman Harwara
2023-08-06 02:43:35 +05:30
committed by GitHub
parent 07c23d24f0
commit 4b24b58f21
6 changed files with 224 additions and 26 deletions

View File

@@ -3,6 +3,9 @@ import { IconType } from '@standardnotes/snjs'
export const PANEL_NAME_NOTES = 'notes'
export const PANEL_NAME_NAVIGATION = 'navigation'
export const URL_REGEX =
/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/
export const EMAIL_REGEX =
/^([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)$/