mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
fix(monitor): isolate offline tests and preserve localized field icons
This commit is contained in:
@@ -2798,7 +2798,7 @@ def enrich_with_emojis(event_type: str, title: str, body: str,
|
||||
label_variants.extend(localized_labels.get(field_key, []))
|
||||
|
||||
for label in label_variants:
|
||||
if stripped.lower().startswith(label.lower() + ':'):
|
||||
if re.match(re.escape(label.lower()) + r'[ \u00a0\u202f]*:', stripped.lower()):
|
||||
enriched_lines.append(f'{field_icon} {stripped}')
|
||||
enriched = True
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user