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.
@@ -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(/-S:(\d+)+\/TB(\d+)@?(\d*)*/);
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(/-F:(\d+)+\/TB(\d+)@?(\d*)*/);
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];