mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-03 05:52:51 +00:00
Merge pull request #480 from vanto/patch-1
DateFind could not handle dates in January
This commit is contained in:
commit
0b65b8b081
@ -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] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user