fix: email reg (#135)

This commit is contained in:
Joel
2023-05-22 10:39:51 +08:00
committed by GitHub
parent 4db01403ae
commit 17a8118154
4 changed files with 6 additions and 6 deletions

View File

@@ -75,9 +75,9 @@ export const LOCALE_COOKIE_NAME = 'locale'
export const DEFAULT_VALUE_MAX_LEN = 48
export const zhRegex = /^[\u4e00-\u9fa5]$/gm
export const emojiRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/gm
export const emailRegex = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/gm
export const zhRegex = /^[\u4e00-\u9fa5]$/m
export const emojiRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/m
export const emailRegex = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,}$/m
const MAX_ZN_VAR_NAME_LENGHT = 8
const MAX_EN_VAR_VALUE_LENGHT = 16
export const getMaxVarNameLength = (value: string) => {