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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class ValidationHelper {
|
|
2
2
|
static isValidEmail(email) {
|
|
3
|
-
if (
|
|
3
|
+
if (typeof email === 'undefined' || email == null || ((typeof email === 'string') && email.length === 0)) {
|
|
4
4
|
return false;
|
|
5
5
|
}
|
|
6
6
|
return this.emailRegExp.test(email);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
ValidationHelper.emailRegExp = /^((
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
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])?)*$/;
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1oZWxwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy96ZWsvc3JjL2xpYi91dGlscy92YWxpZGF0aW9uLWhlbHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sZ0JBQWdCO0lBR3pCLE1BQU0sQ0FBQyxZQUFZLENBQUMsS0FBcUI7UUFDckMsSUFBSSxPQUFPLEtBQUssS0FBSyxXQUFXLElBQUksS0FBSyxJQUFJLElBQUksSUFBSSxDQUFDLENBQUMsT0FBTyxLQUFLLEtBQUssUUFBUSxDQUFDLElBQUksS0FBSyxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUMsRUFBRTtZQUN0RyxPQUFPLEtBQUssQ0FBQztTQUNoQjtRQUVELE9BQU8sSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDeEMsQ0FBQzs7QUFSZSw0QkFBVyxHQUFHLG9NQUFvTSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFZhbGlkYXRpb25IZWxwZXIge1xyXG4gICAgc3RhdGljIHJlYWRvbmx5IGVtYWlsUmVnRXhwID0gL14oPz0uezEsMjU0fSQpKD89LnsxLDY0fUApW2EtekEtWjAtOSEjJCUmJyorLz0/Xl9ge3x9fi1dKyg/OlxcLlthLXpBLVowLTkhIyQlJicqKy89P15fYHt8fX4tXSspKkBbYS16QS1aMC05XSg/OlthLXpBLVowLTktXXswLDYxfVthLXpBLVowLTldKT8oPzpcXC5bYS16QS1aMC05XSg/OlthLXpBLVowLTktXXswLDYxfVthLXpBLVowLTldKT8pKiQvO1xyXG5cclxuICAgIHN0YXRpYyBpc1ZhbGlkRW1haWwoZW1haWw/OiBzdHJpbmcgfCBudWxsKSB7XHJcbiAgICAgICAgaWYgKHR5cGVvZiBlbWFpbCA9PT0gJ3VuZGVmaW5lZCcgfHwgZW1haWwgPT0gbnVsbCB8fCAoKHR5cGVvZiBlbWFpbCA9PT0gJ3N0cmluZycpICYmIGVtYWlsLmxlbmd0aCA9PT0gMCkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuZW1haWxSZWdFeHAudGVzdChlbWFpbCk7XHJcbiAgICB9XHJcbn0iXX0=
|
package/fesm2015/zek.mjs
CHANGED
|
@@ -1116,13 +1116,13 @@ class UrlHelper {
|
|
|
1116
1116
|
|
|
1117
1117
|
class ValidationHelper {
|
|
1118
1118
|
static isValidEmail(email) {
|
|
1119
|
-
if (
|
|
1119
|
+
if (typeof email === 'undefined' || email == null || ((typeof email === 'string') && email.length === 0)) {
|
|
1120
1120
|
return false;
|
|
1121
1121
|
}
|
|
1122
1122
|
return this.emailRegExp.test(email);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
ValidationHelper.emailRegExp = /^((
|
|
1125
|
+
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])?)*$/;
|
|
1126
1126
|
|
|
1127
1127
|
class AuthService {
|
|
1128
1128
|
constructor() {
|