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
1 changed files with 1 additions and 1 deletions

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}]*$)" };