From d7495d26fe274d60993a17b1fec1d6ac4caaf254 Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Mon, 18 Nov 2024 19:19:55 +0100 Subject: [PATCH] Fix color and icon rules (#4449) Signed-off-by: Mark Herwege --- .../core/ui/internal/components/UIComponentSitemapProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java index 9a5a77f8e..5fd4d75ea 100644 --- a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java +++ b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java @@ -102,7 +102,7 @@ public class UIComponentSitemapProvider implements SitemapProvider, RegistryChan private static final String SITEMAP_SUFFIX = ".sitemap"; private static final Pattern CONDITION_PATTERN = Pattern - .compile("(?[A-Za-z]\\w*)?\\s*(?==|!=|<=|>=|<|>)?\\s*(?\\+|-)?(?.+)"); + .compile("((?[A-Za-z]\\w*)?\\s*(?==|!=|<=|>=|<|>))?\\s*(?\\+|-)?(?.+)"); private static final Pattern COMMANDS_PATTERN = Pattern.compile("^(?\"[^\"]*\"|[^\": ]*):(?.*)$"); private Map sitemaps = new HashMap<>();