Lowercase msg before matching

This commit is contained in:
Mark Veidemanis 2023-01-12 07:20:48 +00:00
parent 031995d4b9
commit 9aacc2cc51
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def process_rules(data):
if field == "msg":
for msg in value:
if "msg" in message:
if msg in message["msg"]:
if msg.lower() in message["msg"].lower():
matched_field_number += 1
matched_fields.append(field)
# Break out of the msg matching loop