Skip to content

Commit

Permalink
chore: add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Sep 25, 2022
1 parent 0690d2d commit 7b7cbd0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import java.time.DayOfWeek
object DayOfWeekHelper {
def values: Set[DayOfWeek] = DayOfWeek.values().toSet

// TODO: test
def fromString(str: String): Option[DayOfWeek] =
values.find(_.name.toLowerCase == str.toLowerCase)
}

0 comments on commit 7b7cbd0

Please sign in to comment.