@unikue/ts-lang-utils 1.2.9 → 1.2.10
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/cjs/util/RegexUtils/index.d.ts +1 -0
- package/dist/cjs/util/RegexUtils/index.js +3 -0
- package/dist/cjs/util/RegexUtils/isEmail.d.ts +1 -0
- package/dist/cjs/util/RegexUtils/isEmail.js +31 -0
- package/dist/esm/util/RegexUtils/index.d.ts +1 -0
- package/dist/esm/util/RegexUtils/index.js +1 -0
- package/dist/esm/util/RegexUtils/isEmail.d.ts +1 -0
- package/dist/esm/util/RegexUtils/isEmail.js +3 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export { isAlphanumeric } from './isAlphanumeric';
|
|
|
8
8
|
export { isAlphanumericLower } from './isAlphanumericLower';
|
|
9
9
|
export { isAlphanumericUpper } from './isAlphanumericUpper';
|
|
10
10
|
export { isCompilable } from './isCompilable';
|
|
11
|
+
export { isEmail } from './isEmail';
|
|
11
12
|
export { isNumeric } from './isNumeric';
|
|
12
13
|
export { normalizePattern } from './normalizePattern';
|
|
13
14
|
export { testResetting } from './testResetting';
|
|
@@ -29,6 +29,7 @@ __export(RegexUtils_exports, {
|
|
|
29
29
|
isAlphanumericLower: () => import_isAlphanumericLower.isAlphanumericLower,
|
|
30
30
|
isAlphanumericUpper: () => import_isAlphanumericUpper.isAlphanumericUpper,
|
|
31
31
|
isCompilable: () => import_isCompilable.isCompilable,
|
|
32
|
+
isEmail: () => import_isEmail.isEmail,
|
|
32
33
|
isNumeric: () => import_isNumeric.isNumeric,
|
|
33
34
|
normalizePattern: () => import_normalizePattern.normalizePattern,
|
|
34
35
|
testResetting: () => import_testResetting.testResetting,
|
|
@@ -45,6 +46,7 @@ var import_isAlphanumeric = require("./isAlphanumeric");
|
|
|
45
46
|
var import_isAlphanumericLower = require("./isAlphanumericLower");
|
|
46
47
|
var import_isAlphanumericUpper = require("./isAlphanumericUpper");
|
|
47
48
|
var import_isCompilable = require("./isCompilable");
|
|
49
|
+
var import_isEmail = require("./isEmail");
|
|
48
50
|
var import_isNumeric = require("./isNumeric");
|
|
49
51
|
var import_normalizePattern = require("./normalizePattern");
|
|
50
52
|
var import_testResetting = require("./testResetting");
|
|
@@ -61,6 +63,7 @@ var import_unescapePattern = require("./unescapePattern");
|
|
|
61
63
|
isAlphanumericLower,
|
|
62
64
|
isAlphanumericUpper,
|
|
63
65
|
isCompilable,
|
|
66
|
+
isEmail,
|
|
64
67
|
isNumeric,
|
|
65
68
|
normalizePattern,
|
|
66
69
|
testResetting,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEmail(text?: string | null): boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/util/RegexUtils/isEmail.ts
|
|
20
|
+
var isEmail_exports = {};
|
|
21
|
+
__export(isEmail_exports, {
|
|
22
|
+
isEmail: () => isEmail
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(isEmail_exports);
|
|
25
|
+
function isEmail(text) {
|
|
26
|
+
return !!text && /^[A-Za-z0-9._%+-]+@[-A-Za-z0-9.]+\.[A-Za-z]{2,}$/.test(text);
|
|
27
|
+
}
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
isEmail
|
|
31
|
+
});
|
|
@@ -8,6 +8,7 @@ export { isAlphanumeric } from './isAlphanumeric';
|
|
|
8
8
|
export { isAlphanumericLower } from './isAlphanumericLower';
|
|
9
9
|
export { isAlphanumericUpper } from './isAlphanumericUpper';
|
|
10
10
|
export { isCompilable } from './isCompilable';
|
|
11
|
+
export { isEmail } from './isEmail';
|
|
11
12
|
export { isNumeric } from './isNumeric';
|
|
12
13
|
export { normalizePattern } from './normalizePattern';
|
|
13
14
|
export { testResetting } from './testResetting';
|
|
@@ -8,6 +8,7 @@ export { isAlphanumeric } from "./isAlphanumeric";
|
|
|
8
8
|
export { isAlphanumericLower } from "./isAlphanumericLower";
|
|
9
9
|
export { isAlphanumericUpper } from "./isAlphanumericUpper";
|
|
10
10
|
export { isCompilable } from "./isCompilable";
|
|
11
|
+
export { isEmail } from "./isEmail";
|
|
11
12
|
export { isNumeric } from "./isNumeric";
|
|
12
13
|
export { normalizePattern } from "./normalizePattern";
|
|
13
14
|
export { testResetting } from "./testResetting";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEmail(text?: string | null): boolean;
|