@pelcro/react-pelcro-js 3.16.0 → 3.17.0-beta.2
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12292,7 +12292,7 @@ function Email({
|
|
|
12292
12292
|
}, []);
|
|
12293
12293
|
|
|
12294
12294
|
const isEmailValid = email => {
|
|
12295
|
-
const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[
|
|
12295
|
+
const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
|
|
12296
12296
|
return re.test(email);
|
|
12297
12297
|
};
|
|
12298
12298
|
|
package/dist/index.esm.js
CHANGED
|
@@ -12262,7 +12262,7 @@ function Email({
|
|
|
12262
12262
|
}, []);
|
|
12263
12263
|
|
|
12264
12264
|
const isEmailValid = email => {
|
|
12265
|
-
const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[
|
|
12265
|
+
const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
|
|
12266
12266
|
return re.test(email);
|
|
12267
12267
|
};
|
|
12268
12268
|
|