tods-competition-factory 1.7.0 → 1.7.2
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/forge/generate.mjs +22 -9
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +6 -2
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +15 -9
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +76 -23
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +91 -52
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +14 -13
package/dist/forge/query.mjs
CHANGED
|
@@ -8360,11 +8360,15 @@ function isValid(matchUpFormat) {
|
|
|
8360
8360
|
if (typeof matchUpFormat !== "string")
|
|
8361
8361
|
return false;
|
|
8362
8362
|
const parsedFormat = parse(matchUpFormat);
|
|
8363
|
-
const setParts = matchUpFormat.match(
|
|
8363
|
+
const setParts = matchUpFormat.match(
|
|
8364
|
+
/-S:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
|
|
8365
|
+
);
|
|
8364
8366
|
const setsTo = setParts?.[1];
|
|
8365
8367
|
const tiebreakTo = setParts?.[2];
|
|
8366
8368
|
const tiebreakAt = setParts?.[3];
|
|
8367
|
-
const finalSetParts = matchUpFormat.match(
|
|
8369
|
+
const finalSetParts = matchUpFormat.match(
|
|
8370
|
+
/-F:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
|
|
8371
|
+
);
|
|
8368
8372
|
const finalSetTo = finalSetParts?.[1];
|
|
8369
8373
|
const finalSetTiebreakTo = finalSetParts?.[2];
|
|
8370
8374
|
const finalTiebreakAt = finalSetParts?.[3];
|