From b207be0d3bdf02a1ca9d7f40508ff47b6bf4bac6 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 3 Mar 2022 14:06:35 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1625=20fix=EF=BC=9AProjects=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=97=B6=E4=BF=9D=E5=AD=98=E6=8A=A5=E9=94=99=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6?= 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 7c97e78f6..d4a977ae5 100644 --- a/nezha-fronted/src/components/common/js/validate.js +++ b/nezha-fronted/src/components/common/js/validate.js @@ -77,7 +77,7 @@ export function nzNumber (rule, value, callback) { export function noSpecialChar (rule, value, callback) { // eslint-disable-next-line no-control-regex - const charReg = /^\w[\u0000-\uFFFF]*$/ + const charReg = /^\S[\u0000-\uFFFF]*$/ /// ^\S[\u0000-\uFFFF]*$/ setTimeout(() => { if (!value) {