Fix the email validation problem for a.b@c.club. (#94)

Co-authored-by: yyzhang <yuanyuan.zhang@haochezhu.club>
This commit is contained in:
Yuanyuan Zhang
2023-05-22 10:08:26 +08:00
committed by GitHub
parent 38754734a2
commit d8425f3f4c
4 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ export const DEFAULT_VALUE_MAX_LEN = 48
export const zhRegex = /^[\u4e00-\u9fa5]$/gm
export const emojiRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/gm
export const emailRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
export const emailRegex = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/gm
const MAX_ZN_VAR_NAME_LENGHT = 8
const MAX_EN_VAR_VALUE_LENGHT = 16
export const getMaxVarNameLength = (value: string) => {