@naturalcycles/js-lib 14.207.0 → 14.208.0

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.d.ts CHANGED
@@ -83,6 +83,7 @@ export * from './semver';
83
83
  export * from './web';
84
84
  export * from './abort';
85
85
  export * from './polyfill';
86
+ export * from './string/regex';
86
87
  export * from './zod/zod.util';
87
88
  export * from './zod/zod.shared.schemas';
88
89
  import { z, ZodSchema, ZodError, ZodIssue } from 'zod';
package/dist/index.js CHANGED
@@ -87,6 +87,7 @@ tslib_1.__exportStar(require("./semver"), exports);
87
87
  tslib_1.__exportStar(require("./web"), exports);
88
88
  tslib_1.__exportStar(require("./abort"), exports);
89
89
  tslib_1.__exportStar(require("./polyfill"), exports);
90
+ tslib_1.__exportStar(require("./string/regex"), exports);
90
91
  tslib_1.__exportStar(require("./zod/zod.util"), exports);
91
92
  tslib_1.__exportStar(require("./zod/zod.shared.schemas"), exports);
92
93
  const zod_1 = require("zod");
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Simple, intentionally not exhaustive regex to match an email address.
3
+ *
4
+ * Source: https://regexr.com/3e48o
5
+ */
6
+ export declare const SIMPLE_EMAIL_REGEX: RegExp;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SIMPLE_EMAIL_REGEX = void 0;
4
+ /**
5
+ * Simple, intentionally not exhaustive regex to match an email address.
6
+ *
7
+ * Source: https://regexr.com/3e48o
8
+ */
9
+ exports.SIMPLE_EMAIL_REGEX = /^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/;
package/dist-esm/index.js CHANGED
@@ -83,6 +83,7 @@ export * from './semver';
83
83
  export * from './web';
84
84
  export * from './abort';
85
85
  export * from './polyfill';
86
+ export * from './string/regex';
86
87
  export * from './zod/zod.util';
87
88
  export * from './zod/zod.shared.schemas';
88
89
  import { z, ZodSchema, ZodError } from 'zod';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Simple, intentionally not exhaustive regex to match an email address.
3
+ *
4
+ * Source: https://regexr.com/3e48o
5
+ */
6
+ export const SIMPLE_EMAIL_REGEX = /^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.207.0",
3
+ "version": "14.208.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build-prod": "build-prod-esm-cjs",
package/src/index.ts CHANGED
@@ -83,6 +83,7 @@ export * from './semver'
83
83
  export * from './web'
84
84
  export * from './abort'
85
85
  export * from './polyfill'
86
+ export * from './string/regex'
86
87
  export * from './zod/zod.util'
87
88
  export * from './zod/zod.shared.schemas'
88
89
  import { z, ZodSchema, ZodError, ZodIssue } from 'zod'
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Simple, intentionally not exhaustive regex to match an email address.
3
+ *
4
+ * Source: https://regexr.com/3e48o
5
+ */
6
+ export const SIMPLE_EMAIL_REGEX = /^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/