fix: languages config, update-password

This commit is contained in:
jialin
2024-06-25 11:50:55 +08:00
parent bd6b3dcbe3
commit 9edce7116e
21 changed files with 435 additions and 128 deletions
+15
View File
@@ -43,3 +43,18 @@ export const WatchEventType = {
UPDATE: 'MODIFIED',
DELETE: 'DELETED'
};
export const PasswordReg =
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])(?=\S+$).{6,12}$/;
export const uppercaseReg = /(?=.*[A-Z])/;
export const lowercaseReg = /(?=.*[a-z])/;
export const digitReg = /(?=.*\d)/;
export const specialCharacterReg = /(?=.*[\W_])/;
export const noSpaceReg = /(?=\S+$)/;
export const lengthReg = /^.{6,12}$/;