mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Fixed the view's regex handling of top level items (issue #1487)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8199 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b0898d82db
commit
f68aa5b7a4
1 file changed
+6
-7
@@ -73,13 +73,12 @@ public class ListView extends View {
|
||||
if (includePattern == null) {
|
||||
includePattern = Pattern.compile(includeRegex);
|
||||
}
|
||||
|
||||
Collection<String> allJobNames = owner.getJobNames();
|
||||
for (Iterator<String> iterator = allJobNames.iterator(); iterator.hasNext();) {
|
||||
String string = iterator.next();
|
||||
if (includePattern.matcher(string).matches()) {
|
||||
names.add(string);
|
||||
}
|
||||
|
||||
for (TopLevelItem item : owner.getItems()) {
|
||||
String itemName = item.getName();
|
||||
if (includePattern.matcher(itemName).matches()) {
|
||||
names.add(itemName);
|
||||
}
|
||||
}
|
||||
} catch (PatternSyntaxException pse) {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user