tods-competition-factory 1.6.30 → 1.7.1
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 +6 -2
- 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 +6 -2
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +3 -3
- 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 +12 -11
package/dist/forge/transform.mjs
CHANGED
|
@@ -1588,11 +1588,15 @@ function isValid(matchUpFormat) {
|
|
|
1588
1588
|
if (typeof matchUpFormat !== "string")
|
|
1589
1589
|
return false;
|
|
1590
1590
|
const parsedFormat = parse(matchUpFormat);
|
|
1591
|
-
const setParts = matchUpFormat.match(
|
|
1591
|
+
const setParts = matchUpFormat.match(
|
|
1592
|
+
/-S:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
|
|
1593
|
+
);
|
|
1592
1594
|
const setsTo = setParts?.[1];
|
|
1593
1595
|
const tiebreakTo = setParts?.[2];
|
|
1594
1596
|
const tiebreakAt = setParts?.[3];
|
|
1595
|
-
const finalSetParts = matchUpFormat.match(
|
|
1597
|
+
const finalSetParts = matchUpFormat.match(
|
|
1598
|
+
/-F:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
|
|
1599
|
+
);
|
|
1596
1600
|
const finalSetTo = finalSetParts?.[1];
|
|
1597
1601
|
const finalSetTiebreakTo = finalSetParts?.[2];
|
|
1598
1602
|
const finalTiebreakAt = finalSetParts?.[3];
|