diff --git a/packages/core/client/src/pm/PluginManager.tsx b/packages/core/client/src/pm/PluginManager.tsx index 23e3b79fae..6d12c7199f 100644 --- a/packages/core/client/src/pm/PluginManager.tsx +++ b/packages/core/client/src/pm/PluginManager.tsx @@ -75,14 +75,17 @@ const LocalPlugins = () => { const pluginList = useMemo(() => { let list = filterList[filterIndex]?.list || []; - if (debouncedSearchValue) { + const searchLowerCaseValue = debouncedSearchValue.toLocaleLowerCase().trim(); + if (searchLowerCaseValue) { list = _.filter( list, (item) => - item.name?.includes(debouncedSearchValue) || - item.description?.includes(debouncedSearchValue) || - item.displayName?.includes(debouncedSearchValue) || - item.packageName?.includes(debouncedSearchValue), + String(item.displayName || '') + .toLocaleLowerCase() + .includes(searchLowerCaseValue) || + String(item.description || '') + .toLocaleLowerCase() + .includes(searchLowerCaseValue), ); } return list;