Skip to content

Commit

Permalink
Merge pull request #1354 from parca-dev/search-case-insensitive
Browse files Browse the repository at this point in the history
area/ui: Make node searching on Parca UI case insensitive
  • Loading branch information
metalmatze committed Jul 13, 2022
2 parents 1e724fe + 43cd36c commit c888910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/packages/shared/functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit c888910

Please sign in to comment.