From e4d544042a3ce5efb861f1b1be1d8d9d3495f08f Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Thu, 14 Nov 2024 08:22:23 +0100 Subject: [PATCH] stop --- src/argus_htmx/themes/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argus_htmx/themes/utils.py b/src/argus_htmx/themes/utils.py index 59127778..81551995 100644 --- a/src/argus_htmx/themes/utils.py +++ b/src/argus_htmx/themes/utils.py @@ -34,7 +34,7 @@ def get_stylesheet_path(): def get_themes_from_css(): - THEME_NAME_RE = "(?P[-_]\w+)" + THEME_NAME_RE = "(?P[-_\w]+)" DATA_THEME_RE = f"\[data-theme={THEME_NAME_RE}\]" absolute_stylesheet_path = Path(find(get_stylesheet_path())) @@ -50,7 +50,7 @@ def get_theme_names(quiet=True): themes_from_css = set(get_themes_from_css()) installed_themes = themes_from_setting & themes_from_css - all_themes = themes_from_setting & themes_from_css + all_themes = themes_from_setting | themes_from_css if all_themes != installed_themes: LOG.warning(ERROR_MSG) if not quiet: