monkey-front-core 0.0.417 → 0.0.419
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/esm2020/lib/core/utils/utils.mjs +4 -1
- package/fesm2015/monkey-front-core.mjs +3 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/utils/utils.d.ts +1 -0
- package/monkey-front-core-0.0.419.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.417.tgz +0 -0
|
@@ -281,6 +281,9 @@ class MonkeyEcxUtils {
|
|
|
281
281
|
const length = (country === 'cl') ? 7 : 8;
|
|
282
282
|
return `${this.handleOnlyNumbers(zipCode)}`.length === length;
|
|
283
283
|
}
|
|
284
|
+
static isValidEmail(email) {
|
|
285
|
+
return /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/.test(email || '');
|
|
286
|
+
}
|
|
284
287
|
static getRandomString(len, charSet) {
|
|
285
288
|
charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
286
289
|
const randomString = new Array(len)
|