提交 cd70e68f 编写于 作者: changdi.hao's avatar changdi.hao

Merge branch 'feature/jq' into 'release'

Feature/jq

See merge request com.pica.cloud.foundation.frontend/pica-sensitive-admin!11
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册