Commit beaec40a authored by 李思文's avatar 李思文

【通道名称】和【通道别名】支持下划线输入_

parent eeec658d
Pipeline #3007 passed with stage
in 0 seconds
...@@ -211,7 +211,7 @@ export class CheckService { ...@@ -211,7 +211,7 @@ export class CheckService {
this.flag = 1; this.flag = 1;
return false return false
} }
const reg = new RegExp('^[a-zA-Z0-9]*$'); const reg = new RegExp(eng === "alias" || eng === "name" ? '^[a-zA-Z0-9_]*$' : '^[a-zA-Z0-9]*$');
if (reg.test(data[eng])) { if (reg.test(data[eng])) {
return true; return true;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment