Commit 643437c0 authored by zhengke's avatar zhengke

修改验证

parent 64980197
......@@ -349,8 +349,6 @@
callback(new Error("请输入航班号"));
} else if (!reg3.test(value)) {
callback(new Error("请输入数字或字母"));
} else if (!reg.test(value.slice(0,1))) {
callback(new Error("首字母必须为字母"));
} else if(!reg2.test(value.charAt(value.length - 1))){
callback(new Error("尾数必须为数字"));
} 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