NEZ-1625 fix:Projects编辑时保存报错,不能包含特殊字符
This commit is contained in:
@@ -77,7 +77,7 @@ export function nzNumber (rule, value, callback) {
|
|||||||
|
|
||||||
export function noSpecialChar (rule, value, callback) {
|
export function noSpecialChar (rule, value, callback) {
|
||||||
// eslint-disable-next-line no-control-regex
|
// eslint-disable-next-line no-control-regex
|
||||||
const charReg = /^\w[\u0000-\uFFFF]*$/
|
const charReg = /^\S[\u0000-\uFFFF]*$/
|
||||||
/// ^\S[\u0000-\uFFFF]*$/
|
/// ^\S[\u0000-\uFFFF]*$/
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user