zek 14.2.79 → 14.2.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/zek.mjs
CHANGED
|
@@ -1115,13 +1115,13 @@ class UrlHelper {
|
|
|
1115
1115
|
|
|
1116
1116
|
class ValidationHelper {
|
|
1117
1117
|
static isValidEmail(email) {
|
|
1118
|
-
if (
|
|
1118
|
+
if (typeof email === 'undefined' || email == null || ((typeof email === 'string') && email.length === 0)) {
|
|
1119
1119
|
return false;
|
|
1120
1120
|
}
|
|
1121
1121
|
return this.emailRegExp.test(email);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
ValidationHelper.emailRegExp = /^((
|
|
1124
|
+
ValidationHelper.emailRegExp = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
1125
1125
|
|
|
1126
1126
|
class AuthService {
|
|
1127
1127
|
constructor() {
|