Merge pull request #480 from vanto/patch-1

DateFind could not handle dates in January
This commit is contained in:
eikek
2020-11-28 01:23:54 +01:00
committed by GitHub

View File

@ -76,7 +76,7 @@ object DateFind {
def readMonth: Reader[Int] =
Reader.readFirst(w =>
Some(months.indexWhere(_.contains(w.value))).filter(_ > 0).map(_ + 1)
Some(months.indexWhere(_.contains(w.value))).filter(_ >= 0).map(_ + 1)
)
def readDay: Reader[Int] =