This commit is contained in:
@fawn-nine
2024-07-05 13:14:47 +08:00
parent 989f802f1a
commit eefd8f4e83
5 changed files with 241 additions and 100 deletions

View File

@@ -46,6 +46,8 @@ const courtConfig = {
// #endif
}
};
// 订单编号的正则
const orderRegular = /[0-9]\d{31}$/;
//手机号验证正则表达式
// (中国大陆)
const phoneRegular = /^1\d{10}$/;
@@ -59,5 +61,6 @@ const passwordRegular = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;
export default Object.assign({
phoneRegular,
mailRegular,
passwordRegular
passwordRegular,
orderRegular
}, courtConfig);