From 2e02220de1d1de24375db11f22b4c6626c930a28 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 3 Mar 2022 19:09:25 -0500 Subject: fix(HighlightManager#isMatch): make individual words case insensitive --- src/lib/common/HighlightManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/common/HighlightManager.ts b/src/lib/common/HighlightManager.ts index eddd563..a8bacee 100644 --- a/src/lib/common/HighlightManager.ts +++ b/src/lib/common/HighlightManager.ts @@ -129,7 +129,7 @@ export class HighlightManager { return phrase.toLocaleLowerCase().includes(hl.word.toLocaleLowerCase()); } else { const words = phrase.split(/\s*\b\s/); - return words.includes(hl.word); + return words.some((w) => w.toLocaleLowerCase() === hl.word.toLocaleLowerCase()); } } } -- cgit