1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Fix {group} binding for cases such as GROUP[SITE]

This commit is contained in:
Reinhard Pointner 2017-05-15 05:12:54 +08:00
parent 9b63fad897
commit 4c7da27614

View File

@ -337,7 +337,7 @@ public class ReleaseInfo {
public Pattern getReleaseGroupPattern(boolean strict) throws Exception {
// match 1..N group patterns
String group = "((?<!\\p{Alnum})" + or(releaseGroup.get()) + "(?!\\p{Alnum})[\\p{Punct}]??)+";
String group = "((?<!\\p{Alnum})" + or(releaseGroup.get()) + "(?!\\p{Alnum})[\\p{Punct}]?)+";
// group pattern at beginning or ending of the string
String[] groupHeadTail = { "(?<=^[\\P{Alnum}]*)" + group, group + "(?=[\\P{Alnum}]*$)" };