From 85421ecbd9b69004b2ff7a57be75c5f3266ee497 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 4 Aug 2015 23:40:39 +0000 Subject: [PATCH] * support name_eng.srt pattern for {lang} binding --- source/net/filebot/media/ReleaseInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index 101c7ebf..9b023941 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -241,7 +241,7 @@ public class ReleaseInfo { public Pattern getLanguageSuffixPattern(Collection languages, boolean strict) { // e.g. ".en.srt" or ".en.forced.srt" - return compile("(?<=[.-])" + or(quoteAll(languages)) + "(?=([.-](" + getProperty("pattern.subtitle.tags") + "))?$)", strict ? 0 : CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS); + return compile("(?<=[._-])" + or(quoteAll(languages)) + "(?=([._-](" + getProperty("pattern.subtitle.tags") + "))?$)", strict ? 0 : CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS); } public Pattern getResolutionPattern() {