Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dkumiszhan committed Jul 5, 2023
1 parent ba9a054 commit 7e966bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/eventFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 7e966bd

Please sign in to comment.