[Bug]: Use json dumps instead of str repr to prevent escape character mismatches (#7369)

This commit is contained in:
Rohit Malhotra 2025-03-20 10:33:15 -04:00 committed by GitHub
parent d76477099c
commit b0030d3a2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,7 +406,7 @@ class EventStream:
# Text search in event content if query provided
if query:
event_dict = event_to_dict(event)
event_str = str(event_dict).lower()
event_str = json.dumps(event_dict).lower()
if query.lower() not in event_str:
return True