add files
This commit is contained in:
1 parent
293e4364ed
commit
515dd5a62c
108 files changed
+103859
No files matched your search
@@ -0,0 +1,22 @@
|
||||
export class evalidator {
|
||||
validateEmailRegex(email) {
|
||||
return String(email)
|
||||
.toLowerCase()
|
||||
.match(
|
||||
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
||||
);
|
||||
};
|
||||
|
||||
validateEmailLength(email) {
|
||||
return Array.from(email).length > 5 && Array.from(email).length < 101;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class pvalidator {
|
||||
|
||||
validatePasswordLength(password) {
|
||||
return Array.from(password).length > 5 && Array.from(password).length < 129;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user