def fromString()

in modules/core/src/main/scala/org/scalasteward/core/repoconfig/PullRequestFrequency.scala [57:64]


  def fromString(s: String): Either[String, PullRequestFrequency] =
    s.trim.toLowerCase match {
      case Asap.render => Right(Asap)
      case "@daily"    => Right(Timespan(1.day))
      case "@weekly"   => Right(Timespan(7.day))
      case "@monthly"  => Right(Timespan(30.day))
      case other       => parseTimespan(other).orElse(parseCronExpr(other))
    }