From 16bb04f670eb048587bf5c4e79789af7496b5e3e Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Fri, 5 Jan 2024 15:31:20 -0800 Subject: [PATCH] [Fix] Use 'includes' instead of 'match' to filter winetricks (#3381) Use 'includes' instead of 'match' to filter winetricks --- .../components/UI/Winetricks/WinetricksSearch/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/components/UI/Winetricks/WinetricksSearch/index.tsx b/src/frontend/components/UI/Winetricks/WinetricksSearch/index.tsx index 7c6fb2041f..444d74e4a6 100644 --- a/src/frontend/components/UI/Winetricks/WinetricksSearch/index.tsx +++ b/src/frontend/components/UI/Winetricks/WinetricksSearch/index.tsx @@ -27,7 +27,7 @@ export default function WinetricksSearchBar({ setSearchResults([]) } else { let filtered = allComponents.filter((component) => - component.match(search) + component.includes(search) ) filtered = filtered.filter((component) => !installed?.includes(component)) setSearchResults(filtered)