From a81fcf155a0f7f68cc605f7223567fee496b0704 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 10 Feb 2016 14:33:53 +0000 Subject: [PATCH] Support localized month names when matching dates --- 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 5e146e72..6844d8fa 100644 --- a/source/net/filebot/similarity/DateMatcher.java +++ b/source/net/filebot/similarity/DateMatcher.java @@ -59,7 +59,7 @@ public class DateMatcher { protected DatePattern[] compile(List patterns, Locale locale, DateFilter sanity) { return StreamEx.of(patterns).flatMap(dateFormat -> { return StreamEx.of(Locale.ENGLISH, locale).distinct().map(formatLocale -> { - String regex = StreamEx.of(dateFormat.split(DateFormatPattern.DELIMITER)).map(g -> getPatternGroup(g, formatLocale)).joining("\\D", "(? getPatternGroup(g, formatLocale)).joining("\\D", "(?