mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
JENKINS-67828 Don't prepend icon if it's already there
This commit is contained in:
1 file changed
+5
-1
@@ -221,7 +221,11 @@ public class Icon {
|
||||
if (string == null) {
|
||||
return null;
|
||||
}
|
||||
return "icon-" + toNormalizedIconName(string);
|
||||
String iconName = toNormalizedIconName(string);
|
||||
if (iconName.startsWith("icon-")) {
|
||||
return iconName;
|
||||
}
|
||||
return "icon-" + iconName;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user