From 14acca118201c87b096646c666c3a20480bc509b Mon Sep 17 00:00:00 2001 From: Yomi Eluwande Date: Wed, 13 Jul 2022 11:47:18 +0200 Subject: [PATCH] area/ui: Make node searching on Parca UI case insensitive --- ui/packages/shared/functions/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/packages/shared/functions/src/index.ts b/ui/packages/shared/functions/src/index.ts index cdd7f125e2d..1d8e18f4b3f 100644 --- a/ui/packages/shared/functions/src/index.ts +++ b/ui/packages/shared/functions/src/index.ts @@ -261,5 +261,5 @@ export const diffColor = (diff: number, cumulative: number, isDarkMode: boolean) export const isSearchMatch = (currentSearchString: string | undefined, name: string) => { if (!currentSearchString) return; - return name.includes(currentSearchString); + return name.toLowerCase().indexOf(currentSearchString.toLowerCase()) !== -1; };