Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix the email validation problem for [email protected]. (#94)
Yuanyuan Zhangd8425f3f4c8c
diff --git a/api/libs/helper.py b/api/libs/helper.pyindex bbf01cbad76..0db4363a2d2 100644--- a/api/libs/helper.py+++ b/api/libs/helper.py@@ -21,7 +21,7 @@ class TimestampField(fields.Raw):def email(email):# Define a regex pattern for email addresses- pattern = r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"+ pattern = r"^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$"# Check if the email matches the patternif re.match(pattern, email) is not None:return emaildiff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsxindex 749719e9e99..a53373e7949 100644--- a/web/app/install/installForm.tsx+++ b/web/app/install/installForm.tsx@@ -7,7 +7,7 @@ import { useRouter } from 'next/navigation'import Toast from '../components/base/toast'import { setup } from '@/service/common'-const validEmailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/+const validEmailReg = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/const InstallForm = () => {diff --git a/web/app/signin/normalForm.tsx b/web/app/signin/normalForm.tsxindex e0626572ac2..b7b0f0cca61 100644--- a/web/app/signin/normalForm.tsx+++ b/web/app/signin/normalForm.tsx@@ -13,7 +13,7 @@ import Button from '@/app/components/base/button'import { login, oauth } from '@/service/common'import { apiPrefix } from '@/config'-const validEmailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/+const validEmailReg = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/type IState = {formValid: booleandiff --git a/web/config/index.ts b/web/config/index.tsindex ec7784459f8..2a8ac0a1eb4 100644--- a/web/config/index.ts+++ b/web/config/index.ts@@ -77,7 +77,7 @@ export const DEFAULT_VALUE_MAX_LEN = 48export const zhRegex = /^[\u4e00-\u9fa5]$/gmexport 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}$/gmconst MAX_ZN_VAR_NAME_LENGHT = 8const MAX_EN_VAR_VALUE_LENGHT = 16export const getMaxVarNameLength = (value: string) => {