xdbc 1.0.74 → 1.0.75

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 CHANGED
@@ -38,7 +38,7 @@ export class AE extends DBC {
38
38
  }
39
39
  return true; // In order for optional parameter to not cause an error if they are omitted.
40
40
  }
41
- for (let i = index; i <
41
+ for (let i = index ? index : 0; i <
42
42
  (idxEnd !== undefined
43
43
  ? idxEnd !== -1
44
44
  ? idxEnd + 1
package/dist/DBC/REGEX.js CHANGED
@@ -17,7 +17,6 @@ export class REGEX extends DBC {
17
17
  static checkAlgorithm(
18
18
  // biome-ignore lint/suspicious/noExplicitAny: <explanation>
19
19
  toCheck, expression) {
20
- console.log(toCheck, expression, expression.test(toCheck));
21
20
  if (!expression.test(toCheck)) {
22
21
  return `Value has to comply to regular expression "${expression}"`;
23
22
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.74",
2
+ "version": "1.0.75",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "format": "biome format ./src --write",
package/src/DBC/AE.ts CHANGED
@@ -46,7 +46,7 @@ export class AE extends DBC {
46
46
  }
47
47
 
48
48
  for (
49
- let i = index;
49
+ let i = index ? index : 0;
50
50
  i <
51
51
  (idxEnd !== undefined
52
52
  ? idxEnd !== -1
package/src/DBC/REGEX.ts CHANGED
@@ -30,7 +30,6 @@ export class REGEX extends DBC {
30
30
  toCheck: any,
31
31
  expression: RegExp,
32
32
  ): boolean | string {
33
- console.log(toCheck, expression, expression.test(toCheck as string));
34
33
  if (!expression.test(toCheck as string)) {
35
34
  return `Value has to comply to regular expression "${expression}"`;
36
35
  }