fix: 注册验证
这个提交包含在:
父节点
1e121177ae
当前提交
095d1d3024
@ -33,5 +33,15 @@ export class ValidatorHelper {
|
||||
let regexp: RegExp = new RegExp('(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)');
|
||||
return regexp.test(idcardNum)
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为密码
|
||||
* @param password
|
||||
* @returns
|
||||
*/
|
||||
public static isPassword(password: string) {
|
||||
let regexp: RegExp = new RegExp('(^(?=.*[a-zA-Z])(?=.*\\d)[A-Za-z\\d!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~]{8,12}$)');
|
||||
return regexp.test(password)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户