opt: create new chat session when change role or model, fix bug for mobile no validate

This commit is contained in:
RockYang
2023-11-29 17:36:27 +08:00
parent 63c7041e1f
commit de42a428e6
2 changed files with 9 additions and 10 deletions

View File

@@ -6,6 +6,6 @@ export function validateEmail(email) {
}
export function validateMobile(mobile) {
const regex = /^1[345789]\d{9}$/;
const regex = /^1[3456789]\d{9}$/;
return regex.test(mobile);
}