* support name_eng.srt pattern for {lang} binding

This commit is contained in:
Reinhard Pointner 2015-08-04 23:40:39 +00:00
parent 266d0c7edc
commit 85421ecbd9
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class ReleaseInfo {
public Pattern getLanguageSuffixPattern(Collection<String> 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() {