From ac76890f2a8f24e5f65d96f6fc19c7c8d8aefcab Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Fri, 8 Oct 2021 10:31:37 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1044=20fix:=20=E4=BF=AE=E5=A4=8Dendpoint=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=20name=20=E7=9A=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/js/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/js/validate.js b/nezha-fronted/src/components/common/js/validate.js index ad9583460..04de80b3d 100644 --- a/nezha-fronted/src/components/common/js/validate.js +++ b/nezha-fronted/src/components/common/js/validate.js @@ -76,7 +76,7 @@ export function nzNumber (rule, value, callback) { } export function noSpecialChar (rule, value, callback) { - const charReg = /^[a-z0-9A-Z-]+$/ + const charReg = /[u4e00-u9fa5a-z0-9A-Z-_.]+$/ setTimeout(() => { if (charReg.test(value)) { callback()