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

This commit is contained in:
Reinhard Pointner 2017-05-15 05:16:55 +08:00
parent 4c7da27614
commit dc91e4e12e
1 changed files with 1 additions and 1 deletions

View File

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