From 24dbeda55554628fb177989076d2d6e0a03cb921 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 28 Apr 2014 03:57:35 +0000 Subject: [PATCH] * replace UNICODE_CASE with UNICODE_CLASS which implies UNICODE_CASE and more --- source/net/filebot/media/ReleaseInfo.java | 16 ++++++++-------- .../filebot/similarity/SeasonEpisodeMatcher.java | 2 +- .../filebot/similarity/SeriesNameMatcher.java | 2 +- source/net/filebot/ui/rename/HistoryDialog.java | 2 +- .../net/filebot/ui/subtitle/SubtitleViewer.java | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index c9a2a2aa..3ce87c16 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -213,19 +213,19 @@ public class ReleaseInfo { folders.add(it); } } - structureRootFolderPattern = compile(join(folders, "|"), CASE_INSENSITIVE | UNICODE_CASE); + structureRootFolderPattern = compile(join(folders, "|"), CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS); } return structureRootFolderPattern; } public Pattern getLanguageTagPattern(Collection languages) { // [en] - return compile("(?<=[-\\[{(])(" + join(quoteAll(languages), "|") + ")(?=\\p{Punct})", CASE_INSENSITIVE | UNICODE_CASE); + return compile("(?<=[-\\[{(])(" + join(quoteAll(languages), "|") + ")(?=\\p{Punct})", CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS); } public Pattern getLanguageSuffixPattern(Collection languages, boolean strict) { // .en.srt - return compile("(?<=[.])(" + join(quoteAll(languages), "|") + ")(?=[._ ]*$)", (strict ? 0 : CASE_INSENSITIVE) | UNICODE_CASE); + return compile("(?<=[.])(" + join(quoteAll(languages), "|") + ")(?=[._ ]*$)", (strict ? 0 : CASE_INSENSITIVE) | UNICODE_CHARACTER_CLASS); } public Pattern getResolutionPattern() { @@ -253,21 +253,21 @@ public class ReleaseInfo { public Pattern getReleaseGroupPattern(boolean strict) throws IOException { // pattern matching any release group name enclosed in separators - return compile("(? terms) throws IOException { - return compile("(?