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()