@adminide-stack/core 13.5.13-alpha.0 → 13.5.13-alpha.1
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/lib/utils/validations.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
const validateEmail = function validateEmail(email) {
|
|
2
|
-
|
|
2
|
+
// `+` is a legal local-part separator (Gmail/Fastmail aliases like
|
|
3
|
+
// user+tag@gmail.com). Auth0 accepts such signups, so rejecting them here
|
|
4
|
+
// left accounts permanently stuck at registration ("Please fill a valid
|
|
5
|
+
// email address" on registerAccountUser with nothing to correct).
|
|
6
|
+
const re = /^\w+([+.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,})+$/;
|
|
3
7
|
return re.test(email);
|
|
4
8
|
};export{validateEmail};//# sourceMappingURL=validations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validations.js","sources":["../../src/utils/validations.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG,SAAS,aAAa,CAAC,KAAK,EAAA
|
|
1
|
+
{"version":3,"file":"validations.js","sources":["../../src/utils/validations.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG,SAAS,aAAa,CAAC,KAAK,EAAA;;;;;QAKrD,EAAM,GAAE,6CAAG;AACX,EAAA,OAAA,EAAO,KAAG,CAAA,KAAK,CAAA;AACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/core",
|
|
3
|
-
"version": "13.5.13-alpha.
|
|
3
|
+
"version": "13.5.13-alpha.1",
|
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "adminide-stack-user",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typescript": {
|
|
40
40
|
"definition": "lib/index.d.ts"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "08cdf9c99e77e771a52c00834e3c9bc1225ddeed"
|
|
43
43
|
}
|