From a8ca7c74805dfefab6f19035cd110686571707ac Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:47:46 +0800 Subject: [PATCH] =?UTF-8?q?changes=20=E6=8C=87=E6=A0=87=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/schemas.py b/Common/schemas.py index fafb869..aa328c4 100644 --- a/Common/schemas.py +++ b/Common/schemas.py @@ -5,7 +5,7 @@ import pydantic from pydantic import BaseModel ENameRegex = pydantic.constr(regex="^[a-z_]{1,}$") -# CNameRegex = pydantic.constr(regex="[\u4e00-\u9fa5]") +CNameRegex = pydantic.constr(regex="^[\u4e00-\u9fa5a-zA-Z0-9()]+$") class Parameter(BaseModel):