Fix illegal date issues (e.g. year out of bounds)
This commit is contained in:
parent
eab8c2dccc
commit
28ac45ab03
|
@ -217,7 +217,7 @@ public class DateMatcher {
|
|||
}
|
||||
|
||||
public boolean acceptYear(int year) {
|
||||
return minYear < year && year < maxYear;
|
||||
return minYear <= year && year <= maxYear;
|
||||
}
|
||||
|
||||
public boolean acceptDate(int year, int month, int day) {
|
||||
|
|
Loading…
Reference in New Issue