fix:修改正则表达式

This commit is contained in:
zhangyu
2020-11-10 16:15:17 +08:00
parent 4efa230b02
commit 8c89af5f92
4 changed files with 4 additions and 4 deletions

View File

@@ -485,7 +485,7 @@
this.inputKeyErr.splice(index, 1);
},
validateInput:function(value,index){
if(!/[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){
if(!/^[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){
this.inputKeyErr.splice(index,1,true)
}else{
this.inputKeyErr.splice(index,1,false)