fix: allow special characters in email (#5327)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Mitsuki Ogasahara
2024-06-17 22:32:59 +09:00
committed by GitHub
parent edffa5666d
commit 7305713b97
4 changed files with 29 additions and 5 deletions

View File

@ -102,7 +102,7 @@ export const DEFAULT_PARAGRAPH_VALUE_MAX_LEN = 1000
export const zhRegex = /^[\u4E00-\u9FA5]$/m
export const emojiRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/m
export const emailRegex = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,}$/m
export const emailRegex = /^[\w.!#$%&'*+\-/=?^{|}~]+@([\w-]+\.)+[\w-]{2,}$/m
const MAX_ZN_VAR_NAME_LENGHT = 8
const MAX_EN_VAR_VALUE_LENGHT = 30
export const getMaxVarNameLength = (value: string) => {