xdbc 1.0.76 → 1.0.78
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/DBC/AE.js +0 -1
- package/dist/DBC/REGEX.js +1 -1
- package/package.json +1 -1
- package/src/DBC/AE.ts +0 -1
- package/src/DBC/REGEX.ts +1 -1
package/dist/DBC/AE.js
CHANGED
|
@@ -29,7 +29,6 @@ export class AE extends DBC {
|
|
|
29
29
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
30
30
|
condition, value, index, idxEnd) {
|
|
31
31
|
if (Array.isArray(value)) {
|
|
32
|
-
console.log("S", value);
|
|
33
32
|
if (index !== undefined && idxEnd === undefined) {
|
|
34
33
|
if (index > -1 && index < value.length) {
|
|
35
34
|
const result = condition.check(value[index]);
|
package/dist/DBC/REGEX.js
CHANGED
|
@@ -95,7 +95,7 @@ export class REGEX extends DBC {
|
|
|
95
95
|
/** Stores often used {@link RegExp }s. */
|
|
96
96
|
REGEX.stdExp = {
|
|
97
97
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
98
|
-
url: /^(?:
|
|
98
|
+
url: /^(?:http:|https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,
|
|
99
99
|
keyPath: /^([a-zA-Z_$][a-zA-Z0-9_$]*\.)*[a-zA-Z_$][a-zA-Z0-9_$]*$/,
|
|
100
100
|
date: /^\d{1,4}[.\/-]\d{1,2}[.\/-]\d{1,4}$/i,
|
|
101
101
|
dateFormat: /^((D{1,2}[./-]M{1,2}[./-]Y{1,4})|(M{1,2}[./-]D{1,2}[./-]Y{1,4})|Y{1,4}[./-]D{1,2}[./-]M{1,2}|(Y{1,4}[./-]M{1,2}[./-]D{1,2}))$/i,
|
package/package.json
CHANGED
package/src/DBC/AE.ts
CHANGED
|
@@ -33,7 +33,6 @@ export class AE extends DBC {
|
|
|
33
33
|
idxEnd: number | undefined,
|
|
34
34
|
): boolean | string {
|
|
35
35
|
if (Array.isArray(value)) {
|
|
36
|
-
console.log("S", value);
|
|
37
36
|
if (index !== undefined && idxEnd === undefined) {
|
|
38
37
|
if (index > -1 && index < value.length) {
|
|
39
38
|
const result = condition.check(value[index]);
|
package/src/DBC/REGEX.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class REGEX extends DBC {
|
|
|
8
8
|
/** Stores often used {@link RegExp }s. */
|
|
9
9
|
public static stdExp = {
|
|
10
10
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
11
|
-
url: /^(?:
|
|
11
|
+
url: /^(?:http:|https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,
|
|
12
12
|
keyPath: /^([a-zA-Z_$][a-zA-Z0-9_$]*\.)*[a-zA-Z_$][a-zA-Z0-9_$]*$/,
|
|
13
13
|
date: /^\d{1,4}[.\/-]\d{1,2}[.\/-]\d{1,4}$/i,
|
|
14
14
|
dateFormat:
|