Fix {group} binding for cases such as GROUP[SITE]
This commit is contained in:
parent
9b63fad897
commit
4c7da27614
|
@ -337,7 +337,7 @@ public class ReleaseInfo {
|
||||||
|
|
||||||
public Pattern getReleaseGroupPattern(boolean strict) throws Exception {
|
public Pattern getReleaseGroupPattern(boolean strict) throws Exception {
|
||||||
// match 1..N group patterns
|
// 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
|
// group pattern at beginning or ending of the string
|
||||||
String[] groupHeadTail = { "(?<=^[\\P{Alnum}]*)" + group, group + "(?=[\\P{Alnum}]*$)" };
|
String[] groupHeadTail = { "(?<=^[\\P{Alnum}]*)" + group, group + "(?=[\\P{Alnum}]*$)" };
|
||||||
|
|
Loading…
Reference in New Issue