Improve os logo mapping with spaces

This commit is contained in:
crschnick
2025-03-11 09:05:04 +00:00
parent b2efb8ddfa
commit 03d222e5f5
@@ -82,7 +82,8 @@ public class OsLogoComp extends SimpleComp {
}
return ICONS.entrySet().stream()
.filter(e -> name.toLowerCase().contains(e.getKey()))
.filter(e -> name.toLowerCase().contains(e.getKey()) ||
name.toLowerCase().replaceAll("\\s+", "").contains(e.getKey()))
.findAny()
.map(e -> e.getValue())
.orElse("os/linux.svg");