fix(monitor): isolate offline tests and preserve localized field icons

This commit is contained in:
martino
2026-10-26 00:35:37 +01:00
parent 1ff63fa955
commit 6c2e268c4b
16 changed files with 306 additions and 64 deletions
+1 -1
View File
@@ -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