From 7e966bd18acb8480c2f2075d8d33289ef055ccef Mon Sep 17 00:00:00 2001 From: Kumiszhan Dybyspayeva Date: Wed, 5 Jul 2023 16:25:17 +0100 Subject: [PATCH] Addressed comments --- src/eventFilter.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/eventFilter.ts b/src/eventFilter.ts index 00ae114..95ecc3a 100644 --- a/src/eventFilter.ts +++ b/src/eventFilter.ts @@ -58,11 +58,9 @@ function filterByBooleanClause(event: Event, booleanClauseCstNode: BooleanClause throw new Error('Unexpected missing portItemClause'); } } else if (children.searchClause) { - let payloadString = children.searchClause[0].children.STRING[0].image.toLowerCase(); + let payloadString = children.searchClause[0].children.STRING[0].image; let trimmedString = payloadString.substring(1, payloadString.length - 1); - - console.log(payloadString.length); - return event.payload.toLowerCase().includes(trimmedString); + return atob(event.payload).includes(trimmedString); } else { throw new Error('Unexpected booleanClauseCstNode'); }