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