fix trailing space in state string (#3812)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>pull/3809/head
parent
366bffa406
commit
3eef2872f5
bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components
|
@ -93,7 +93,7 @@ public class UIComponentSitemapProvider implements SitemapProvider, RegistryChan
|
||||||
private static final Pattern VISIBILITY_PATTERN = Pattern
|
private static final Pattern VISIBILITY_PATTERN = Pattern
|
||||||
.compile("(?<item>[A-Za-z]\\w*)\\s*(?<condition>==|!=|<=|>=|<|>)\\s*(?<sign>\\+|-)?(?<state>.+)");
|
.compile("(?<item>[A-Za-z]\\w*)\\s*(?<condition>==|!=|<=|>=|<|>)\\s*(?<sign>\\+|-)?(?<state>.+)");
|
||||||
private static final Pattern COLOR_PATTERN = Pattern.compile(
|
private static final Pattern COLOR_PATTERN = Pattern.compile(
|
||||||
"((?<item>[A-Za-z]\\w*)?\\s*((?<condition>==|!=|<=|>=|<|>)\\s*(?<sign>\\+|-)?(?<state>[^=]+))?\\s*=)?\\s*(?<arg>\\S+)");
|
"((?<item>[A-Za-z]\\w*)?\\s*((?<condition>==|!=|<=|>=|<|>)\\s*(?<sign>\\+|-)?(?<state>[^=]*[^= ]+))?\\s*=)?\\s*(?<arg>\\S+)");
|
||||||
|
|
||||||
private Map<String, Sitemap> sitemaps = new HashMap<>();
|
private Map<String, Sitemap> sitemaps = new HashMap<>();
|
||||||
private @Nullable UIComponentRegistryFactory componentRegistryFactory;
|
private @Nullable UIComponentRegistryFactory componentRegistryFactory;
|
||||||
|
|
Loading…
Reference in New Issue