Skip to content

Commit

Permalink
[Fix] Use 'includes' instead of 'match' to filter winetricks (#3381)
Browse files Browse the repository at this point in the history
Use 'includes' instead of 'match' to filter winetricks
  • Loading branch information
arielj authored Jan 5, 2024
1 parent 148ff38 commit 16bb04f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16bb04f

Please sign in to comment.