Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2. Adds a field to exclude some job patterns from icon color c…
…omputation
- Loading branch information
Showing
7 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/org/jenkinsci/plugins/categorizedview/Utils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.jenkinsci.plugins.categorizedview; | ||
|
||
public class Utils { | ||
|
||
static String normalizeRegex(String groupRegex) { | ||
if (groupRegex == null) return ""; | ||
String regex = groupRegex; | ||
if (!regex.startsWith(".*")) | ||
regex =".*"+regex; | ||
if (!regex.endsWith(".*")) | ||
regex +=".*"; | ||
if (!regex.contains("(")) { | ||
regex = ".*("+groupRegex+").*"; | ||
} | ||
return regex; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters