mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-08-01 13:04:52 +00:00
Merge pull request #480 from vanto/patch-1
DateFind could not handle dates in January
This commit is contained in:
@ -76,7 +76,7 @@ object DateFind {
|
|||||||
|
|
||||||
def readMonth: Reader[Int] =
|
def readMonth: Reader[Int] =
|
||||||
Reader.readFirst(w =>
|
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] =
|
def readDay: Reader[Int] =
|
||||||
|
Reference in New Issue
Block a user