From 935612b0d5670f40cdfe4cdc91322714a4171afe Mon Sep 17 00:00:00 2001 From: Iskandar Reza Date: Thu, 25 May 2023 14:05:11 -0700 Subject: [PATCH] Update helpers.ts --- src/common/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/helpers.ts b/src/common/helpers.ts index 3f64376..b1cf427 100644 --- a/src/common/helpers.ts +++ b/src/common/helpers.ts @@ -24,7 +24,7 @@ function matchesCriteria(document: IVSDocument, criteria: IVSFilterCriteria } if (criteria.text) { const texts = Array.isArray(criteria.text) ? criteria.text : [criteria.text]; - if (!texts.includes(document.text)) { + if (!texts.some(word => document.text.includes(word))) { return false; } }