@alextheman/utility 5.3.0 → 5.4.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.cjs +13 -7
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +10 -7
- package/dist/internal/index.cjs +9 -2
- package/dist/internal/index.js +9 -2
- package/dist/node/index.cjs +9 -2
- package/dist/node/index.js +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -32,19 +32,22 @@ let libsodium_wrappers = require("libsodium-wrappers");
|
|
|
32
32
|
libsodium_wrappers = __toESM(libsodium_wrappers);
|
|
33
33
|
|
|
34
34
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/root/constants/NAMESPACE_EXPORT_REGEX.ts
|
|
39
|
-
const NAMESPACE_EXPORT_REGEX = "export\\s+\\*\\s+from";
|
|
35
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
36
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
40
37
|
|
|
41
38
|
//#endregion
|
|
42
39
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
43
40
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
44
41
|
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
44
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
45
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
46
|
+
|
|
45
47
|
//#endregion
|
|
46
48
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
47
|
-
const
|
|
49
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
50
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
48
51
|
|
|
49
52
|
//#endregion
|
|
50
53
|
//#region src/root/functions/arrayHelpers/fillArray.ts
|
|
@@ -1616,9 +1619,12 @@ function truncate(stringToTruncate, maxLength = 5) {
|
|
|
1616
1619
|
exports.APIError = APIError;
|
|
1617
1620
|
exports.DataError = DataError;
|
|
1618
1621
|
exports.Env = Env;
|
|
1622
|
+
exports.FILE_PATH_PATTERN = FILE_PATH_PATTERN;
|
|
1619
1623
|
exports.FILE_PATH_REGEX = FILE_PATH_REGEX;
|
|
1620
|
-
exports.NAMESPACE_EXPORT_REGEX = NAMESPACE_EXPORT_REGEX;
|
|
1621
1624
|
exports.ONE_DAY_IN_MILLISECONDS = ONE_DAY_IN_MILLISECONDS;
|
|
1625
|
+
exports.UUID_PATTERN = UUID_PATTERN;
|
|
1626
|
+
exports.UUID_REGEX = UUID_REGEX;
|
|
1627
|
+
exports.VERSION_NUMBER_PATTERN = VERSION_NUMBER_PATTERN;
|
|
1622
1628
|
exports.VERSION_NUMBER_REGEX = VERSION_NUMBER_REGEX;
|
|
1623
1629
|
exports.VersionNumber = VersionNumber;
|
|
1624
1630
|
exports.VersionType = VersionType;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,16 +2,19 @@ import z, { ZodError, ZodType, z as z$1 } from "zod";
|
|
|
2
2
|
import { DotenvParseOutput } from "dotenv";
|
|
3
3
|
|
|
4
4
|
//#region src/root/constants/FILE_PATH_REGEX.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
//#region src/root/constants/NAMESPACE_EXPORT_REGEX.d.ts
|
|
8
|
-
declare const NAMESPACE_EXPORT_REGEX = "export\\s+\\*\\s+from";
|
|
5
|
+
declare const FILE_PATH_PATTERN: string;
|
|
6
|
+
declare const FILE_PATH_REGEX: RegExp;
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.d.ts
|
|
11
9
|
declare const ONE_DAY_IN_MILLISECONDS: number;
|
|
12
10
|
//#endregion
|
|
11
|
+
//#region src/root/constants/UUID_REGEX.d.ts
|
|
12
|
+
declare const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
13
|
+
declare const UUID_REGEX: RegExp;
|
|
14
|
+
//#endregion
|
|
13
15
|
//#region src/root/constants/VERSION_NUMBER_REGEX.d.ts
|
|
14
|
-
declare const
|
|
16
|
+
declare const VERSION_NUMBER_PATTERN: string;
|
|
17
|
+
declare const VERSION_NUMBER_REGEX: RegExp;
|
|
15
18
|
//#endregion
|
|
16
19
|
//#region src/root/functions/arrayHelpers/fillArray.d.ts
|
|
17
20
|
/**
|
|
@@ -1083,4 +1086,4 @@ declare function normaliseIndents(strings: TemplateStringsArray, ...interpolatio
|
|
|
1083
1086
|
*/
|
|
1084
1087
|
declare const normalizeIndents: typeof normaliseIndents;
|
|
1085
1088
|
//#endregion
|
|
1086
|
-
export { APIError, ArrayElement, CallReturnType, CamelToKebabOptions, CreateEnumType, CreateFormDataOptions, CreateFormDataOptionsNullableResolution, CreateFormDataOptionsUndefinedOrNullResolution, DataError, DisallowUndefined, Env, FILE_PATH_REGEX, FormDataArrayResolutionStrategy, FormDataNullableResolutionStrategy, HTTPErrorCode, IgnoreCase, IsTypeArgumentString, KebabToCamelOptions,
|
|
1089
|
+
export { APIError, ArrayElement, CallReturnType, CamelToKebabOptions, CreateEnumType, CreateFormDataOptions, CreateFormDataOptionsNullableResolution, CreateFormDataOptionsUndefinedOrNullResolution, DataError, DisallowUndefined, Env, FILE_PATH_PATTERN, FILE_PATH_REGEX, FormDataArrayResolutionStrategy, FormDataNullableResolutionStrategy, HTTPErrorCode, IgnoreCase, IsTypeArgumentString, KebabToCamelOptions, NonUndefined, NormaliseIndentsFunction, NormaliseIndentsOptions, NormalizeIndentsFunction, NormalizeIndentsOptions, ONE_DAY_IN_MILLISECONDS, OptionalOnCondition, ParallelTuple, RecordKey, RemoveUndefined, StringListToArrayOptions, UUID_PATTERN, UUID_REGEX, VERSION_NUMBER_PATTERN, VERSION_NUMBER_REGEX, VersionNumber, FormatOptionsBase as VersionNumberToStringOptions, VersionType, addDaysToDate, appendSemicolon, camelToKebab, convertFileToBase64, createFormData, createTemplateStringsArray, deepCopy, deepFreeze, encryptWithKey, fillArray, formatDateAndTime, getRandomNumber, getRecordKeys, getStringsAndInterpolations, httpErrorCodeLookup, interpolate, interpolateObjects, isAnniversary, isLeapYear, isMonthlyMultiple, isOrdered, isSameDate, isTemplateStringsArray, kebabToCamel, normaliseIndents, normalizeIndents, omitProperties, paralleliseArrays, parseBoolean, parseEnv, parseFormData, parseIntStrict, parseVersionType, parseZodSchema, parseZodSchemaAsync, randomiseArray, range, removeDuplicates, removeUndefinedFromObject, sayHello, stringListToArray, stringifyDotenv, truncate, wait, zodVersionNumber };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,16 +2,19 @@ import z, { ZodError, ZodType, z as z$1 } from "zod";
|
|
|
2
2
|
import { DotenvParseOutput } from "dotenv";
|
|
3
3
|
|
|
4
4
|
//#region src/root/constants/FILE_PATH_REGEX.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
//#region src/root/constants/NAMESPACE_EXPORT_REGEX.d.ts
|
|
8
|
-
declare const NAMESPACE_EXPORT_REGEX = "export\\s+\\*\\s+from";
|
|
5
|
+
declare const FILE_PATH_PATTERN: string;
|
|
6
|
+
declare const FILE_PATH_REGEX: RegExp;
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.d.ts
|
|
11
9
|
declare const ONE_DAY_IN_MILLISECONDS: number;
|
|
12
10
|
//#endregion
|
|
11
|
+
//#region src/root/constants/UUID_REGEX.d.ts
|
|
12
|
+
declare const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
13
|
+
declare const UUID_REGEX: RegExp;
|
|
14
|
+
//#endregion
|
|
13
15
|
//#region src/root/constants/VERSION_NUMBER_REGEX.d.ts
|
|
14
|
-
declare const
|
|
16
|
+
declare const VERSION_NUMBER_PATTERN: string;
|
|
17
|
+
declare const VERSION_NUMBER_REGEX: RegExp;
|
|
15
18
|
//#endregion
|
|
16
19
|
//#region src/root/functions/arrayHelpers/fillArray.d.ts
|
|
17
20
|
/**
|
|
@@ -1083,4 +1086,4 @@ declare function normaliseIndents(strings: TemplateStringsArray, ...interpolatio
|
|
|
1083
1086
|
*/
|
|
1084
1087
|
declare const normalizeIndents: typeof normaliseIndents;
|
|
1085
1088
|
//#endregion
|
|
1086
|
-
export { APIError, type ArrayElement, type CallReturnType, CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined, Env, FILE_PATH_REGEX, type FormDataArrayResolutionStrategy, type FormDataNullableResolutionStrategy, type HTTPErrorCode, type IgnoreCase, type IsTypeArgumentString, KebabToCamelOptions,
|
|
1089
|
+
export { APIError, type ArrayElement, type CallReturnType, CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined, Env, FILE_PATH_PATTERN, FILE_PATH_REGEX, type FormDataArrayResolutionStrategy, type FormDataNullableResolutionStrategy, type HTTPErrorCode, type IgnoreCase, type IsTypeArgumentString, KebabToCamelOptions, type NonUndefined, NormaliseIndentsFunction, NormaliseIndentsOptions, NormalizeIndentsFunction, NormalizeIndentsOptions, ONE_DAY_IN_MILLISECONDS, type OptionalOnCondition, ParallelTuple, type RecordKey, type RemoveUndefined, type StringListToArrayOptions, UUID_PATTERN, UUID_REGEX, VERSION_NUMBER_PATTERN, VERSION_NUMBER_REGEX, VersionNumber, type FormatOptionsBase as VersionNumberToStringOptions, VersionType, addDaysToDate, appendSemicolon, camelToKebab, convertFileToBase64, createFormData, createTemplateStringsArray, deepCopy, deepFreeze, encryptWithKey, fillArray, formatDateAndTime, getRandomNumber, getRecordKeys, getStringsAndInterpolations, httpErrorCodeLookup, interpolate, interpolateObjects, isAnniversary, isLeapYear, isMonthlyMultiple, isOrdered, isSameDate, isTemplateStringsArray, kebabToCamel, normaliseIndents, normalizeIndents, omitProperties, paralleliseArrays, parseBoolean, parseEnv, parseFormData, parseIntStrict, parseVersionType, parseZodSchema, parseZodSchemaAsync, randomiseArray, range, removeDuplicates, removeUndefinedFromObject, sayHello, stringListToArray, stringifyDotenv, truncate, wait, zodVersionNumber };
|
package/dist/index.js
CHANGED
|
@@ -2,19 +2,22 @@ import z, { z as z$1 } from "zod";
|
|
|
2
2
|
import sodium from "libsodium-wrappers";
|
|
3
3
|
|
|
4
4
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/root/constants/NAMESPACE_EXPORT_REGEX.ts
|
|
9
|
-
const NAMESPACE_EXPORT_REGEX = "export\\s+\\*\\s+from";
|
|
5
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
6
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
10
7
|
|
|
11
8
|
//#endregion
|
|
12
9
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
13
10
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
14
11
|
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
14
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
15
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
16
|
+
|
|
15
17
|
//#endregion
|
|
16
18
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
17
|
-
const
|
|
19
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
20
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
18
21
|
|
|
19
22
|
//#endregion
|
|
20
23
|
//#region src/root/functions/arrayHelpers/fillArray.ts
|
|
@@ -1583,4 +1586,4 @@ function truncate(stringToTruncate, maxLength = 5) {
|
|
|
1583
1586
|
}
|
|
1584
1587
|
|
|
1585
1588
|
//#endregion
|
|
1586
|
-
export { APIError, DataError, Env,
|
|
1589
|
+
export { APIError, DataError, Env, FILE_PATH_PATTERN, FILE_PATH_REGEX, ONE_DAY_IN_MILLISECONDS, UUID_PATTERN, UUID_REGEX, VERSION_NUMBER_PATTERN, VERSION_NUMBER_REGEX, VersionNumber, VersionType, addDaysToDate, appendSemicolon, camelToKebab, convertFileToBase64, createFormData, createTemplateStringsArray, deepCopy, deepFreeze, encryptWithKey, fillArray, formatDateAndTime, getRandomNumber, getRecordKeys, getStringsAndInterpolations, httpErrorCodeLookup, interpolate, interpolateObjects, isAnniversary, isLeapYear, isMonthlyMultiple, isOrdered, isSameDate, isTemplateStringsArray, kebabToCamel, normaliseIndents, normalizeIndents, omitProperties, paralleliseArrays, parseBoolean, parseEnv, parseFormData, parseIntStrict, parseVersionType, parseZodSchema, parseZodSchemaAsync, randomiseArray, range, removeDuplicates, removeUndefinedFromObject, sayHello, stringListToArray, stringifyDotenv, truncate, wait, zodVersionNumber };
|
package/dist/internal/index.cjs
CHANGED
|
@@ -183,15 +183,22 @@ var DataError = class DataError extends Error {
|
|
|
183
183
|
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
186
|
-
const
|
|
186
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
187
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
187
188
|
|
|
188
189
|
//#endregion
|
|
189
190
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
190
191
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
191
192
|
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
195
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
196
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
197
|
+
|
|
192
198
|
//#endregion
|
|
193
199
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
194
|
-
const
|
|
200
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
201
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
195
202
|
|
|
196
203
|
//#endregion
|
|
197
204
|
//#region src/root/types/VersionNumber.ts
|
package/dist/internal/index.js
CHANGED
|
@@ -153,15 +153,22 @@ var DataError = class DataError extends Error {
|
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
156
|
-
const
|
|
156
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
157
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
157
158
|
|
|
158
159
|
//#endregion
|
|
159
160
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
160
161
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
161
162
|
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
165
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
166
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
167
|
+
|
|
162
168
|
//#endregion
|
|
163
169
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
164
|
-
const
|
|
170
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
171
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
165
172
|
|
|
166
173
|
//#endregion
|
|
167
174
|
//#region src/root/types/VersionNumber.ts
|
package/dist/node/index.cjs
CHANGED
|
@@ -70,15 +70,22 @@ const normaliseImportPath = normalizeImportPath;
|
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
73
|
-
const
|
|
73
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
74
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
74
75
|
|
|
75
76
|
//#endregion
|
|
76
77
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
77
78
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
78
79
|
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
82
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
83
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
84
|
+
|
|
79
85
|
//#endregion
|
|
80
86
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
81
|
-
const
|
|
87
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
88
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
82
89
|
|
|
83
90
|
//#endregion
|
|
84
91
|
//#region src/root/functions/arrayHelpers/fillArray.ts
|
package/dist/node/index.js
CHANGED
|
@@ -40,15 +40,22 @@ const normaliseImportPath = normalizeImportPath;
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/root/constants/FILE_PATH_REGEX.ts
|
|
43
|
-
const
|
|
43
|
+
const FILE_PATH_PATTERN = String.raw`(?<directory>.+)[\/\\](?<base>[^\/\\]+)`;
|
|
44
|
+
const FILE_PATH_REGEX = RegExp(`^${FILE_PATH_PATTERN}$`);
|
|
44
45
|
|
|
45
46
|
//#endregion
|
|
46
47
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.ts
|
|
47
48
|
const ONE_DAY_IN_MILLISECONDS = 1440 * 60 * 1e3;
|
|
48
49
|
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/root/constants/UUID_REGEX.ts
|
|
52
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
53
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
54
|
+
|
|
49
55
|
//#endregion
|
|
50
56
|
//#region src/root/constants/VERSION_NUMBER_REGEX.ts
|
|
51
|
-
const
|
|
57
|
+
const VERSION_NUMBER_PATTERN = String.raw`^(?:v)?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`;
|
|
58
|
+
const VERSION_NUMBER_REGEX = RegExp(`^${VERSION_NUMBER_PATTERN}$`);
|
|
52
59
|
|
|
53
60
|
//#endregion
|
|
54
61
|
//#region src/root/functions/arrayHelpers/fillArray.ts
|