提交 f0fcab25 编写于 作者: jq's avatar jq

设置括号显示

上级 7103451d
...@@ -406,8 +406,10 @@ ...@@ -406,8 +406,10 @@
import { isEmptyUtils, openLoading, closeLoading } from '../../common/utils'; import { isEmptyUtils, openLoading, closeLoading } from '../../common/utils';
import { doUpload, getFilePath } from "../../common/qiniuUtil"; import { doUpload, getFilePath } from "../../common/qiniuUtil";
function isNormalWorld(rule, value,callback) { function isNormalWorld(rule, value,callback) {
var regEn = /[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im, // var regEn = /[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,
regCn = /[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im; // regCn = /[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;
var regEn = /[`~!@#$%^&*_+<>?:"{},.\/;'[\]]/im,
regCn = /[·!#¥:;“”‘、,|《。》?、【】[\]]/im;
if(regEn.test(value) || regCn.test(value)) { if(regEn.test(value) || regCn.test(value)) {
return callback("名称不能包含特殊字符") return callback("名称不能包含特殊字符")
} }
......
...@@ -479,8 +479,10 @@ ...@@ -479,8 +479,10 @@
import { doUpload, getFilePath } from "../../common/qiniuUtil"; import { doUpload, getFilePath } from "../../common/qiniuUtil";
import { isEmptyUtils, openLoading, closeLoading } from '../../common/utils'; import { isEmptyUtils, openLoading, closeLoading } from '../../common/utils';
function isNormalWorld(rule, value,callback) { function isNormalWorld(rule, value,callback) {
var regEn = /[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im, // var regEn = /[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,
regCn = /[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im; // regCn = /[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;
var regEn = /[`~!@#$%^&*_+<>?:"{},.\/;'[\]]/im,
regCn = /[·!#¥:;“”‘、,|《。》?、【】[\]]/im;
if(regEn.test(value) || regCn.test(value)) { if(regEn.test(value) || regCn.test(value)) {
return callback("名称不能包含特殊字符") return callback("名称不能包含特殊字符")
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册