Skip to content

Commit

Permalink
#687 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
luechtdiode committed Jul 23, 2023
1 parent 803deb1 commit 0e40a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ch/seidel/kutu/domain/TeamRegel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object TeamRegel {
, ("Aus Verband, drei Bestnoten pro Gerät, mit max vier Mitglieder" -> "VerbandGerät(3/4)")
, ("Aus Verband, drei Gesamt-Bestnoten, mit unbeschränkter Anzahl Mitglieder" -> "VerbandGesamt(3/*)")
, ("Aus Verband, drei Gesamt-Bestnoten, mit max vier Mitglieder" -> "VerbandGesamt(3/4)")
, ("Individuell" -> "VereinGesamt(<min>/<max>), VerbandGesamt(<min>/<max>, VereinGerät(<min>/<max>), VerbandGerät(<min>/<max>)")
, ("Individuell" -> "VereinGesamt(<min>/<max>), VerbandGesamt(<min>/<max>), VereinGerät(<min>/<max>), VerbandGerät(<min>/<max>)")
)
private val rangePattern = "([\\S]+)\\(([0-9]+)/([0-9,\\*]*)\\)".r

Expand All @@ -28,7 +28,7 @@ object TeamRegel {
case "VerbandGerät" => Some(TeamRegelVerbandGeraet(min, defaultMax(max)))
case _ => None
}
case "Keine Teams" => Some(defaultRegel.asInstanceOf[TeamRegel])
case "Keine Teams" =>None
case s: String => None
}
if (mappedRules.isEmpty) defaultRegel else {
Expand Down

0 comments on commit 0e40a43

Please sign in to comment.