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.
@@ -16225,11 +16225,15 @@ function isValid(matchUpFormat) {
16225
16225
  if (typeof matchUpFormat !== "string")
16226
16226
  return false;
16227
16227
  const parsedFormat = parse(matchUpFormat);
16228
- const setParts = matchUpFormat.match(/-S:(\d+)+\/TB(\d+)@?(\d*)*/);
16228
+ const setParts = matchUpFormat.match(
16229
+ /-S:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
16230
+ );
16229
16231
  const setsTo = setParts?.[1];
16230
16232
  const tiebreakTo = setParts?.[2];
16231
16233
  const tiebreakAt = setParts?.[3];
16232
- const finalSetParts = matchUpFormat.match(/-F:(\d+)+\/TB(\d+)@?(\d*)*/);
16234
+ const finalSetParts = matchUpFormat.match(
16235
+ /-F:([1-9])+\/TB([0-9]{1,2})@?([1-9]?)*/
16236
+ );
16233
16237
  const finalSetTo = finalSetParts?.[1];
16234
16238
  const finalSetTiebreakTo = finalSetParts?.[2];
16235
16239
  const finalTiebreakAt = finalSetParts?.[3];