mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
proper doing "or" for comma separated masks
This commit is contained in:
@@ -166,9 +166,9 @@ public class FindInProjectUtil {
|
||||
for(String mask:masks) {
|
||||
mask = mask.trim();
|
||||
if (StringUtil.startsWith(mask, "!")) {
|
||||
negativePattern += "(" + PatternUtil.convertToRegex(mask.substring(1)) + ")";
|
||||
negativePattern += (negativePattern.isEmpty() ? "" : "|") + "(" + PatternUtil.convertToRegex(mask.substring(1)) + ")";
|
||||
} else {
|
||||
pattern += "(" + PatternUtil.convertToRegex(mask) + ")";
|
||||
pattern += (pattern.isEmpty() ? "" : "|") + "(" + PatternUtil.convertToRegex(mask) + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user