From 28ac45ab039649f97ebde79c65e9b6e2821a2725 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 5 Oct 2016 03:06:39 +0800 Subject: [PATCH] Fix illegal date issues (e.g. year out of bounds) --- source/net/filebot/similarity/DateMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/similarity/DateMatcher.java b/source/net/filebot/similarity/DateMatcher.java index 678dff34..a289d420 100644 --- a/source/net/filebot/similarity/DateMatcher.java +++ b/source/net/filebot/similarity/DateMatcher.java @@ -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) {